14f8ab
From d91eadbbb3e2d02e7297214da394b0e232544386 Mon Sep 17 00:00:00 2001
14f8ab
From: Jiffin Tony Thottan <jthottan@redhat.com>
14f8ab
Date: Tue, 2 May 2017 14:06:00 +0530
14f8ab
Subject: [PATCH 066/124] glusterd/ganesha : add proper NULL check in
14f8ab
 manage_export_config
14f8ab
14f8ab
Label: DOWNSTREAM ONLY
14f8ab
14f8ab
Change-Id: I872b2b6b027f04e61f60ad85588f50e1ef2f988c
14f8ab
Signed-off-by: Jiffin Tony Thottan <jthottan@redhat.com>
14f8ab
Reviewed-on: https://review.gluster.org/17150
14f8ab
Smoke: Gluster Build System <jenkins@build.gluster.org>
14f8ab
Reviewed-by: soumya k <skoduri@redhat.com>
14f8ab
NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org>
14f8ab
Reviewed-by: Kaleb KEITHLEY <kkeithle@redhat.com>
14f8ab
CentOS-regression: Gluster Build System <jenkins@build.gluster.org>
14f8ab
Signed-off-by: Jiffin Tony Thottan <jthottan@redhat.com>
14f8ab
Reviewed-on: https://code.engineering.redhat.com/gerrit/167151
14f8ab
Reviewed-by: Soumya Koduri <skoduri@redhat.com>
14f8ab
Tested-by: RHGS Build Bot <nigelb@redhat.com>
14f8ab
Reviewed-by: Sunil Kumar Heggodu Gopala Acharya <sheggodu@redhat.com>
14f8ab
---
14f8ab
 xlators/mgmt/glusterd/src/glusterd-ganesha.c | 2 +-
14f8ab
 1 file changed, 1 insertion(+), 1 deletion(-)
14f8ab
14f8ab
diff --git a/xlators/mgmt/glusterd/src/glusterd-ganesha.c b/xlators/mgmt/glusterd/src/glusterd-ganesha.c
14f8ab
index d9fdfc6..fe0bffc 100644
14f8ab
--- a/xlators/mgmt/glusterd/src/glusterd-ganesha.c
14f8ab
+++ b/xlators/mgmt/glusterd/src/glusterd-ganesha.c
14f8ab
@@ -435,7 +435,7 @@ manage_export_config(char *volname, char *value, char **op_errstr)
14f8ab
                     CONFDIR, value, volname, NULL);
14f8ab
     ret = runner_run(&runner);
14f8ab
 
14f8ab
-    if (ret && !(*op_errstr))
14f8ab
+    if (ret && op_errstr)
14f8ab
         gf_asprintf(op_errstr,
14f8ab
                     "Failed to create"
14f8ab
                     " NFS-Ganesha export config file.");
14f8ab
-- 
14f8ab
1.8.3.1
14f8ab