diff options
author | Lalatendu Mohanty <lmohanty@redhat.com> | 2014-01-14 23:24:50 +0530 |
---|---|---|
committer | Vijay Bellur <vbellur@redhat.com> | 2014-01-15 10:08:58 -0800 |
commit | f3e227d525ee04a3ea0196f7a15aa9b1a8f8cae1 (patch) | |
tree | c1533641019fabdf25e6cdd6d8c6be3171ae8439 | |
parent | f139fc7e44da27670e90bd7ba55ff80e7c8b8ecd (diff) |
geo-rep: Fixing null pointer dereference of "op_value"
Change-Id: Id39743eaa5a52cc7fd4e2a1378a23384f5ef1fed
BUG: 789278
Signed-off-by: Lalatendu Mohanty <lmohanty@redhat.com>
Reviewed-on: http://review.gluster.org/6700
Reviewed-by: Avra Sengupta <asengupt@redhat.com>
Tested-by: Avra Sengupta <asengupt@redhat.com>
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-geo-rep.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-geo-rep.c b/xlators/mgmt/glusterd/src/glusterd-geo-rep.c index 849480a28d2..3969db17c5c 100644 --- a/xlators/mgmt/glusterd/src/glusterd-geo-rep.c +++ b/xlators/mgmt/glusterd/src/glusterd-geo-rep.c @@ -2614,7 +2614,7 @@ glusterd_gsync_configure (glusterd_volinfo_t *volinfo, char *slave, goto out; } - if (!strcmp (op_name, "state_file")) { + if ((!strcmp (op_name, "state_file")) && (op_value)) { ret = lstat (op_value, &stbuf); if (ret) { |