]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
monmaptool: Don't call set_port on an invalid address 40758/head
authorBrad Hubbard <bhubbard@redhat.com>
Wed, 25 Nov 2020 01:57:37 +0000 (11:57 +1000)
committerNathan Cutler <ncutler@suse.com>
Sat, 10 Apr 2021 18:02:25 +0000 (20:02 +0200)
commit161612f03b689aea492da56e6a6f37e1bf82018c
treeb68b0d9b056d62fce367a65384fee5b4574672b3
parent1976598f645ad1935a5e428219713b8856796d83
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