mirror of
https://github.com/ceph/ceph
synced 2025-03-09 17:59:10 +00:00
adminsocket: change failure test
This makes coverity happier: CID 716941: Using invalid iterator (INVALIDATE_ITERATOR) At (35): Dereferencing iterator "p" though it is already past the end of its container. only because it doesn't understand all the side-effects of the failure branch above. Signed-off-by: Sage Weil <sage@inktank.com>
This commit is contained in:
parent
3ec32c94ab
commit
dfb9488a42
@ -331,7 +331,7 @@ bool AdminSocket::do_accept()
|
||||
}
|
||||
|
||||
bufferlist out;
|
||||
if (match.size() == 0) {
|
||||
if (p == match.end()) {
|
||||
lderr(m_cct) << "AdminSocket: request '" << c << "' not defined" << dendl;
|
||||
} else {
|
||||
string args;
|
||||
|
Loading…
Reference in New Issue
Block a user