]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
common/admin_socket: always validate the parameters 37098/head
authorKefu Chai <kchai@redhat.com>
Fri, 11 Sep 2020 08:42:24 +0000 (16:42 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 11 Sep 2020 08:57:18 +0000 (16:57 +0800)
commit0039eb2ce612fff21be71254a33883df80a934b7
tree874b80da8e343f9ca6d87f8fe84f63c18d68d89c
parent0fc4ed1d9109abc489a65340b92908107337fafd
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>
src/common/admin_socket.cc