summaryrefslogtreecommitdiffstats
path: root/rpc/rpc-lib/src/rpcsvc.c
diff options
context:
space:
mode:
authorPranith K <pranithk@gluster.com>2011-03-26 11:40:05 +0000
committerVijay Bellur <vijay@dev.gluster.com>2011-03-29 05:32:36 -0700
commitad278612cd464503e421211a9e78afc7e43f43c2 (patch)
treeb18f0b46f2738cecd4f8be0168108a6488658eab /rpc/rpc-lib/src/rpcsvc.c
parent9c0d73d37bd7fa2f342215362d0d8ab88db5ee28 (diff)
rpc: Provide an option to allow insecure ports
Signed-off-by: Pranith Kumar K <pranithk@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 2582 (allow option to accept messages from insecure ports) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2582
Diffstat (limited to 'rpc/rpc-lib/src/rpcsvc.c')
-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 d949677c3..fc49a7712 100644
--- a/rpc/rpc-lib/src/rpcsvc.c
+++ b/rpc/rpc-lib/src/rpcsvc.c
@@ -963,7 +963,7 @@ rpcsvc_handle_rpc_call (rpcsvc_t *svc, rpc_transport_t *trans,
gf_log ("rpcsvc", GF_LOG_TRACE, "Client port: %d", (int)port);
- if (port > 1024) { //Non-privilaged user, fail request
+ if ((port > 1024) && (0 == svc->allow_insecure)) { //Non-privileged user, fail request
gf_log ("glusterd", GF_LOG_ERROR, "Request received from non-"
"privileged port. Failing request");
return -1;