From 7e91c81702284f1eb68567fc5d9385ce22405e69 Mon Sep 17 00:00:00 2001 From: zhaokun Date: Mon, 16 May 2016 09:30:48 +0800 Subject: [PATCH] rgw/rgw_common.cc: modify the end check in RGWHTTPArgs::sys_get Fixes: http://tracker.ceph.com/issues/16072 Signed-off-by: zhao kun --- src/rgw/rgw_common.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rgw/rgw_common.cc b/src/rgw/rgw_common.cc index cd6d752279eaf..969909a348577 100644 --- a/src/rgw/rgw_common.cc +++ b/src/rgw/rgw_common.cc @@ -839,7 +839,7 @@ void RGWHTTPArgs::get_bool(const char *name, bool *val, bool def_val) string RGWHTTPArgs::sys_get(const string& name, bool * const exists) { const auto iter = sys_val_map.find(name); - const bool e = (iter != val_map.end()); + const bool e = (iter != sys_val_map.end()); if (exists) { *exists = e; -- 2.39.5