diff options
author | Jose A. Rivera <jarrpa@redhat.com> | 2014-02-05 09:11:55 -0600 |
---|---|---|
committer | Vijay Bellur <vbellur@redhat.com> | 2014-02-14 07:06:28 -0800 |
commit | db95a98527caf1b5a52ef49e537d0ee575a9bc61 (patch) | |
tree | c11da754ec3e9ed7b9872fc3576c5a0c545847c6 | |
parent | 53779e4458c17a3978675585e8099c97c8c2b3a2 (diff) |
glusterfsd: Check for NULL before dereference.
BUG: 789278
CID: 1124805
Change-Id: I5926a4e59790f142d65f034726c9c369c2ad7808
Signed-off-by: Jose A. Rivera <jarrpa@redhat.com>
Reviewed-on: http://review.gluster.org/6909
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Vijay Bellur <vbellur@redhat.com>
-rw-r--r-- | glusterfsd/src/glusterfsd-mgmt.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/glusterfsd/src/glusterfsd-mgmt.c b/glusterfsd/src/glusterfsd-mgmt.c index 69c049d6793..d4201b38ecb 100644 --- a/glusterfsd/src/glusterfsd-mgmt.c +++ b/glusterfsd/src/glusterfsd-mgmt.c @@ -1380,7 +1380,8 @@ out: free (rsp.spec); - emancipate (ctx, ret); + if (ctx) + emancipate (ctx, ret); // Stop if server is running at an unsupported op-version if (ENOTSUP == ret) { |