Commit 0e00093
committed
rgw/http: finish_request() after logging errors
the http manager's background thread is processing responses and logging
any errors. but its call to finish_request() -> complete_request() drops
its reference with req_data->put() before logging the error message in
req_data->error_buf. if put() dropped the last reference, we'd access
error_buf after it's freed
Fixes: https://tracker.ceph.com/issues/67522
Signed-off-by: Casey Bodley <[email protected]>1 parent dbcd888 commit 0e00093
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1147 | 1147 | | |
1148 | 1148 | | |
1149 | 1149 | | |
1150 | | - | |
1151 | 1150 | | |
1152 | 1151 | | |
1153 | 1152 | | |
| |||
1160 | 1159 | | |
1161 | 1160 | | |
1162 | 1161 | | |
| 1162 | + | |
1163 | 1163 | | |
1164 | 1164 | | |
1165 | 1165 | | |
| |||
0 commit comments