]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
monmaptool: Don't call set_port on an invalid address 40690/head
authorBrad Hubbard <bhubbard@redhat.com>
Wed, 25 Nov 2020 01:57:37 +0000 (11:57 +1000)
committersinguliere <singuliere@autistici.org>
Fri, 9 Apr 2021 05:33:52 +0000 (07:33 +0200)
commitfbc9f87dd675a6aa042009125d62d54bdb98d0e3
treef1d163246ac0ba4d7ea7b6519f506cf0b8799960
parent932dd17a34e0e09974992c58846070f283329396
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