diff options
author | Yehuda Sadeh <yehuda@inktank.com> | 2012-12-19 17:07:18 -0800 |
---|---|---|
committer | Yehuda Sadeh <yehuda@inktank.com> | 2012-12-19 17:07:18 -0800 |
commit | 3ed2d59e98494a0da29f4bb8537471237a6f8e93 (patch) | |
tree | 42b231fbe048d21383b657aeebc6ddc359d26797 | |
parent | dfd310368267df848f2b65cc536b4ffcb039d353 (diff) | |
download | ceph-3ed2d59e98494a0da29f4bb8537471237a6f8e93.tar.gz |
rgw: fix error handling with swift
Fixes: #3649
verify_swift_token returns a bool and not an int.
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
-rw-r--r-- | src/rgw/rgw_swift.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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; |