]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: fix null dereference
authorYehuda Sadeh <yehuda@redhat.com>
Fri, 22 Jan 2016 00:09:23 +0000 (16:09 -0800)
committerYehuda Sadeh <yehuda@redhat.com>
Fri, 22 Jan 2016 00:09:23 +0000 (16:09 -0800)
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
src/rgw/rgw_main.cc

index e0b4cc6f32307805de6f9a6850b225ae8c57d7e4..5fbee746055cb504a4b4f3447262749b87914858 100644 (file)
@@ -673,7 +673,11 @@ done:
   }
 
   int http_ret = s->err.http_ret;
-  int op_ret = op->get_ret();
+
+  int op_ret = 0;
+  if (op) {
+    op_ret = op->get_ret();
+  }
 
   req->log_format(s, "op status=%d", op_ret);
   req->log_format(s, "http status=%d", http_ret);