Fixes: #5931
Backport: bobtail, cuttlefish
Fix a bad check, where we compare the wrong field. Instead of
comparing the ret code to 0, we compare the string value to 0
which generates implicit casting, hence the crash.
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
s->formatter->open_object_section("Deleted");
s->formatter->dump_string("Key", result.first);
s->formatter->close_section();
- } else if (result.first < 0) {
+ } else if (result.second < 0) {
struct rgw_http_errors r;
int err_no;