From: xie xingguo Date: Mon, 6 Jun 2016 11:24:01 +0000 (+0800) Subject: mon/AuthMonitor: fix wrongly error handling logic X-Git-Tag: ses5-milestone5~239^2~5 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=5acb47fdb25f147e8f099c1a8b45a5c3888f6264;p=ceph.git mon/AuthMonitor: fix wrongly error handling logic We shall set err correctly instead of rs here... Signed-off-by: xie xingguo --- diff --git a/src/mon/AuthMonitor.cc b/src/mon/AuthMonitor.cc index 9bfc81434f80..0358fa06c778 100644 --- a/src/mon/AuthMonitor.cc +++ b/src/mon/AuthMonitor.cc @@ -721,7 +721,7 @@ bool AuthMonitor::prepare_command(MonOpRequestRef op) ::decode(keyring, iter); } catch (const buffer::error &ex) { ss << "error decoding keyring" << " " << ex.what(); - rs = err; + err = -EINVAL; goto done; } import_keyring(keyring);