diff options
author | Xavi Hernandez <xhernandez@redhat.com> | 2020-09-23 12:50:07 +0200 |
---|---|---|
committer | MOHIT AGRAWAL <moagrawa@redhat.com> | 2020-09-25 04:00:15 +0000 |
commit | 9310e319daad357e02fbc59a22fe4ba34d7bc4b3 (patch) | |
tree | 1a4b06aafd8ed5f52e26feb7e072967ccace7cc3 /tests/nfs.rc | |
parent | d7ce8331a146aff84f8d222bc93c7af610707540 (diff) |
gfapi: Check the fd argument before accessing it
Some public GFAPI functions did access the fd object without verifying
that it wasn't NULL, causing crashes in some cases.
This patch returns an error code in case it's NULL.
Updates: #1009
Change-Id: I8cadde87ae8d542e0af9b55aa866fe763f97d4fb
Signed-off-by: Xavi Hernandez <xhernandez@redhat.com>
Diffstat (limited to 'tests/nfs.rc')
0 files changed, 0 insertions, 0 deletions