diff options
author | Xavi Hernandez <xhernandez@redhat.com> | 2019-06-25 18:00:06 +0200 |
---|---|---|
committer | Atin Mukherjee <amukherj@redhat.com> | 2019-06-26 03:08:34 +0000 |
commit | f36086db87aae24c10abde434f081d78b942735e (patch) | |
tree | 6f305a9da5e172700671e5d7bca58e75114c5532 /libglusterfs/src | |
parent | 40c18b189f31a87b5c5f9344c4a0ab44cb61ef75 (diff) |
glusterd: fix use-after-free of a dict_t
A dict was passed to a function that calls dict_unref() without taking
any additional reference. Given that the same dict is also used after
the function returns, this was causing a use-after-free situation.
To fix the issue, we simply take an additional reference before calling
the function.
Fixes: bz#1723890
Change-Id: I98c6b76b08fe3fa6224edf281a26e9ba1ffe3017
Signed-off-by: Xavi Hernandez <xhernandez@redhat.com>
Diffstat (limited to 'libglusterfs/src')
0 files changed, 0 insertions, 0 deletions