summaryrefslogtreecommitdiffstats
path: root/glusterfsd
diff options
context:
space:
mode:
authorJose A. Rivera <jarrpa@redhat.com>2014-02-05 09:11:55 -0600
committerVijay Bellur <vbellur@redhat.com>2014-02-14 07:06:28 -0800
commitdb95a98527caf1b5a52ef49e537d0ee575a9bc61 (patch)
treec11da754ec3e9ed7b9872fc3576c5a0c545847c6 /glusterfsd
parent53779e4458c17a3978675585e8099c97c8c2b3a2 (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>
Diffstat (limited to 'glusterfsd')
-rw-r--r--glusterfsd/src/glusterfsd-mgmt.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/glusterfsd/src/glusterfsd-mgmt.c b/glusterfsd/src/glusterfsd-mgmt.c
index 69c049d..d4201b3 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) {