]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
monmaptool: Don't call set_port on an invalid address 38258/head
authorBrad Hubbard <bhubbard@redhat.com>
Wed, 25 Nov 2020 01:57:37 +0000 (11:57 +1000)
committerBrad Hubbard <bhubbard@redhat.com>
Thu, 1 Apr 2021 06:34:35 +0000 (16:34 +1000)
commitc0aa1fdbe7b87c2fb4b572169372ec487950b03d
tree63a9856a9da9347df46979ec7b1498318c8457e5
parentf73716402b9be7db88d47f4b2b86d1127d46c057
monmaptool: Don't call set_port on an invalid address

Verify we parse the entire address argument.

Fixes: https://tracker.ceph.com/issues/48336
Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/msg/msg_types.cc
src/msg/msg_types.h
src/tools/monmaptool.cc