summaryrefslogtreecommitdiffstats
path: root/rpc/rpc-lib
diff options
context:
space:
mode:
authorkrishna <krishna@gluster.com>2011-09-14 16:13:27 +0530
committerVijay Bellur <vijay@gluster.com>2011-09-18 22:17:26 -0700
commit9eec7900639684e5a2fd80b273437fefe6b5b930 (patch)
treed129dc24cb216251a6116f370c209a569b3d2efa /rpc/rpc-lib
parent16a4d4352c762f6035e1a39f619d358ba7688502 (diff)
rpc: Use correct variable for volume-specific insecure ports check
Change-Id: Ica59a3154c4e7d980d3477dd3879c7cebe92ad87 BUG: 3515 Reviewed-on: http://review.gluster.com/418 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Vijay Bellur <vijay@gluster.com>
Diffstat (limited to 'rpc/rpc-lib')
-rw-r--r--rpc/rpc-lib/src/rpcsvc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rpc/rpc-lib/src/rpcsvc.c b/rpc/rpc-lib/src/rpcsvc.c
index 245b41cabc1..f411fa4a7e2 100644
--- a/rpc/rpc-lib/src/rpcsvc.c
+++ b/rpc/rpc-lib/src/rpcsvc.c
@@ -2321,7 +2321,7 @@ rpcsvc_transport_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;