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:
Sage Weil 2012-09-27 18:02:45 -07:00
parent 3ec32c94ab
commit dfb9488a42

View File

@ -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;