summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src/syncop.c
diff options
context:
space:
mode:
authorAshish Pandey <aspandey@redhat.com>2019-07-11 16:52:49 +0530
committerhari gowtham <hari.gowtham005@gmail.com>2020-02-28 06:06:57 +0000
commitbd37f5350ac9b85c18353069c36a6ae4e489d100 (patch)
tree93538b423aa0f7b887919edaa4f40f9fb42ecdb4 /libglusterfs/src/syncop.c
parent559fd060c59edec69ba66be7e0a447c8e0408d51 (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#1806836
Diffstat (limited to 'libglusterfs/src/syncop.c')
0 files changed, 0 insertions, 0 deletions