From f66089e5d749cf15b8c7d6a46f75655a360d848e Mon Sep 17 00:00:00 2001 From: Shehjar Tikoo Date: Mon, 5 Sep 2011 16:19:48 +0530 Subject: nfs-rpc: Use correct variable for volume-specific insecure ports check Change-Id: Ia53f64e923babdd3af2d82b13350c97fa25fac2d BUG: 3515 Reviewed-on: http://review.gluster.com/356 Tested-by: Gluster Build System Reviewed-by: Shehjar Tikoo --- xlators/nfs/lib/src/rpcsvc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xlators/nfs') diff --git a/xlators/nfs/lib/src/rpcsvc.c b/xlators/nfs/lib/src/rpcsvc.c index 96dd22a3d37..38caca316b3 100644 --- a/xlators/nfs/lib/src/rpcsvc.c +++ b/xlators/nfs/lib/src/rpcsvc.c @@ -984,7 +984,7 @@ nfs_rpcsvc_conn_privport_check (rpcsvc_t *svc, char *volname, if (dict_get (svc->options, srchstr)) { ret = dict_get_str (svc->options, srchstr, &valstr); if (ret == 0) { - ret = gf_string2boolean (srchstr, &insecure); + ret = gf_string2boolean (valstr, &insecure); if (ret == 0) { if (insecure == _gf_true) exportinsecure = RPCSVC_AUTH_ACCEPT; -- cgit