]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
monmaptool: Don't call set_port on an invalid address 40700/head
authorBrad Hubbard <bhubbard@redhat.com>
Wed, 25 Nov 2020 01:57:37 +0000 (11:57 +1000)
committerNathan Cutler <ncutler@suse.com>
Thu, 8 Apr 2021 16:53:44 +0000 (18:53 +0200)
commitb71071bc52cb25d61ff40d3099dd7f4e0c04a2f7
tree79de58843d30a770429b82478449db959679f434
parenta3bb71c89d324b13294707f66d71b7b74886e1b6
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>
(cherry picked from commit c0aa1fdbe7b87c2fb4b572169372ec487950b03d)
src/msg/msg_types.cc
src/msg/msg_types.h
src/tools/monmaptool.cc