summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt/glusterd/src
diff options
context:
space:
mode:
authorRaghavendra Bhat <raghavendrabhat@gluster.com>2010-09-14 06:21:20 +0000
committerVijay Bellur <vijay@dev.gluster.com>2010-09-14 05:00:41 -0700
commit7b591588b3031d0c6351d7c0a4626caad5fb3263 (patch)
tree5571d9fad4901836ad9ef5d9669b9d957f835432 /xlators/mgmt/glusterd/src
parent8b667fed03a49dc59ef9ae937a081145d38dc5a1 (diff)
compare rsp.spec before freeing it
Signed-off-by: Raghavendra Bhat <raghavendrabhat@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 1596 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1596
Diffstat (limited to 'xlators/mgmt/glusterd/src')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-handshake.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-handshake.c b/xlators/mgmt/glusterd/src/glusterd-handshake.c
index 116ea61707c..88549d72763 100644
--- a/xlators/mgmt/glusterd/src/glusterd-handshake.c
+++ b/xlators/mgmt/glusterd/src/glusterd-handshake.c
@@ -181,7 +181,7 @@ fail:
(gd_serialize_t)xdr_serialize_getspec_rsp);
if (args.key)
free (args.key);//malloced by xdr
- if (rsp.spec)
+ if (rsp.spec && (strcmp (rsp.spec, "")))
free (rsp.spec);
return 0;