]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: fix error handling with swift
authorYehuda Sadeh <yehuda@inktank.com>
Thu, 20 Dec 2012 01:07:18 +0000 (17:07 -0800)
committerYehuda Sadeh <yehuda@inktank.com>
Thu, 20 Dec 2012 01:07:18 +0000 (17:07 -0800)
Fixes: #3649
verify_swift_token returns a bool and not an int.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
src/rgw/rgw_swift.cc

index 8e77768fcdc8e795ee846721577331fc892be10c..19810d6a86708ad98b6dde3016fe9cab392647c6 100644 (file)
@@ -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;