From 3ed2d59e98494a0da29f4bb8537471237a6f8e93 Mon Sep 17 00:00:00 2001 From: Yehuda Sadeh Date: Wed, 19 Dec 2012 17:07:18 -0800 Subject: rgw: fix error handling with swift Fixes: #3649 verify_swift_token returns a bool and not an int. Signed-off-by: Yehuda Sadeh --- src/rgw/rgw_swift.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/rgw/rgw_swift.cc b/src/rgw/rgw_swift.cc index 8e77768fcdc..19810d6a867 100644 --- a/src/rgw/rgw_swift.cc +++ b/src/rgw/rgw_swift.cc @@ -102,7 +102,7 @@ bool rgw_verify_os_token(req_state *s) int ret = rgw_swift_validate_token(s->os_auth_token, &info); if (ret < 0) - return ret; + return false; if (!info.user) { dout(5) << "swift auth didn't authorize a user" << dendl; -- cgit v1.2.1