diff options
author | Michael Scherer <misc@redhat.com> | 2017-09-08 18:45:12 +0200 |
---|---|---|
committer | Raghavendra G <rgowdapp@redhat.com> | 2017-09-15 08:28:37 +0000 |
commit | e9acd3130374ce5d512b784310a729734e6655a5 (patch) | |
tree | 63433565cdeea9c48d84931c39118dbdca26db63 /rpc/rpc-transport/socket/src | |
parent | 777ad8f6a17d11e4582cf11d332a1a4d4c0c706f (diff) |
Fix use-after-free in gf_rdma_do_reads
If iobref_new can't allocate a ref, we free the iobuf, and
then go to the cleanup part of the function, that will
run iobuf_unref a 2nd time, which trigger a warning with
coverity.
Change-Id: Ie9cf7a5d5f98244a390e44e1403c614199eb650c
BUG: 789278
Signed-off-by: Michael Scherer <misc@redhat.com>
Reviewed-on: https://review.gluster.org/18245
Smoke: Gluster Build System <jenkins@build.gluster.org>
Tested-by: Raghavendra G <rgowdapp@redhat.com>
Reviewed-by: Raghavendra G <rgowdapp@redhat.com>
CentOS-regression: Gluster Build System <jenkins@build.gluster.org>
Diffstat (limited to 'rpc/rpc-transport/socket/src')
0 files changed, 0 insertions, 0 deletions