diff options
author | Ashish Pandey <aspandey@redhat.com> | 2019-07-11 16:52:49 +0530 |
---|---|---|
committer | Xavi Hernandez <xhernandez@redhat.com> | 2019-11-04 11:00:40 +0000 |
commit | 3ab23415804502b1ba89360c55ac3e8143822a0b (patch) | |
tree | 3f393cc65d42917ef37486482512d25c3faf7e7c /libgfdb.pc.in | |
parent | 7a1c912a6b145cbf3b22884a7a6b2dfe16fb5de0 (diff) |
cluster/ec: Change handling of heal failure to avoid crash
Problem:
ec_getxattr_heal_cbk was called with NULL as second argument
in case heal was failing.
This function was dereferencing "cookie" argument which caused crash.
Solution:
Cookie is changed to carry the value that was supposed to be
stored in fop->data, so even in the case when fop is NULL in error
case, there won't be any NULL dereference.
Thanks to Xavi for the suggestion about the fix.
Change-Id: I0798000d5cadb17c3c2fbfa1baf77033ffc2bb8c
fixes: bz#1729085
Diffstat (limited to 'libgfdb.pc.in')
0 files changed, 0 insertions, 0 deletions