summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 116ea6170..88549d727 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;