diff options
author | Milind Changire <mchangir@redhat.com> | 2015-07-29 14:57:44 +0530 |
---|---|---|
committer | Raghavendra G <rgowdapp@redhat.com> | 2015-07-30 03:19:45 -0700 |
commit | 65a981e63c5a28ad917cab4a830f9b4e186c114a (patch) | |
tree | 47d5e6a1aa44edb1377f2ba2957532f88614974c /rpc/rpc-lib | |
parent | b467af0e99b39ef708420d3f7f6696b0ca618512 (diff) |
rpc: check for unprivileged port should start at 1024
The current check for unprivileged port starts beyond 1024
i.e. port > 1024
The actual check should start at 1024
i.e. port >= 1024
Change-Id: I78aff3025891e3e78ca6a9a670c89571752157df
BUG: 1247930
Signed-off-by: Milind Changire <mchangir@redhat.com>
Reviewed-on: http://review.gluster.org/11788
Tested-by: NetBSD Build System <jenkins@build.gluster.org>
Reviewed-by: Raghavendra G <rgowdapp@redhat.com>
Diffstat (limited to 'rpc/rpc-lib')
-rw-r--r-- | rpc/rpc-lib/src/rpcsvc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rpc/rpc-lib/src/rpcsvc.c b/rpc/rpc-lib/src/rpcsvc.c index 5fbdf96d000..2404a48bce7 100644 --- a/rpc/rpc-lib/src/rpcsvc.c +++ b/rpc/rpc-lib/src/rpcsvc.c @@ -611,7 +611,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) + if (port >= 1024) unprivileged = _gf_true; } |