summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt/glusterd/src
diff options
context:
space:
mode:
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 116ea617..88549d72 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;