summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
authorShehjar Tikoo <shehjart@gluster.com>2011-09-05 16:19:48 +0530
committerVijay Bellur <vijay@gluster.com>2011-09-12 06:26:53 -0700
commit5e3699ea32ebc491b406508b878ea650f5dfc7c0 (patch)
tree503f5c15b83ce63c02fe5ffa53758c4ff191fa49 /xlators
parent96ebf45d1d62c6626303727dce3ea5be3000742c (diff)
nfs-rpc: Use correct variable for volume-specific insecure ports check
Change-Id: Ia53f64e923babdd3af2d82b13350c97fa25fac2d BUG: 3515 Reviewed-on: http://review.gluster.com/355 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Shehjar Tikoo <shehjart@gluster.com>
Diffstat (limited to 'xlators')
-rw-r--r--xlators/nfs/lib/src/rpcsvc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/nfs/lib/src/rpcsvc.c b/xlators/nfs/lib/src/rpcsvc.c
index 50d21add1e1..179fd9b4d3c 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;