summaryrefslogtreecommitdiffstats
path: root/xlators/nfs/lib/src/rpcsvc.c
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/nfs/lib/src/rpcsvc.c')
-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;