]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
common/admin_socket: always validate the parameters 37341/head
authorKefu Chai <kchai@redhat.com>
Fri, 11 Sep 2020 08:42:24 +0000 (16:42 +0800)
committerNathan Cutler <ncutler@suse.com>
Wed, 23 Sep 2020 11:29:59 +0000 (13:29 +0200)
commit364e410ee6349fe05aefce4f417fc88c3c97eca6
tree68c2ef9aba8b03e82f4cabb740de8c2795405b8d
parentc350b133b55bf4a0ecd32f77a17cfd5ea5357fdc
common/admin_socket: always validate the parameters

this change addresses the regression introduced by
65267d55cd3714c436b188aaa8b2049ad2b21225.

before this change, we reply the client with a failure only if
both the prefix and the arguments do not match.

after this change, both the prefix and argument are checked.

Fixes: https://tracker.ceph.com/issues/47179
Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit 0039eb2ce612fff21be71254a33883df80a934b7)
src/common/admin_socket.cc