summaryrefslogtreecommitdiff
path: root/libexec
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>1997-03-29 12:35:06 +0000
committerPeter Wemm <peter@FreeBSD.org>1997-03-29 12:35:06 +0000
commitf0ccf9018b02402355ff8f2d5dbca8bb7e5bf791 (patch)
tree507899538f6c44dace3a4d7f598872072e38109a /libexec
parent00780cef44cbd45eecb03d58aa56ed05be4fccac (diff)
Notes
Diffstat (limited to 'libexec')
-rw-r--r--libexec/rshd/rshd.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/libexec/rshd/rshd.c b/libexec/rshd/rshd.c
index 2e95a7788cdf..b90214dfb7c1 100644
--- a/libexec/rshd/rshd.c
+++ b/libexec/rshd/rshd.c
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: rshd.c,v 1.13 1997/02/22 14:22:23 peter Exp $
+ * $Id: rshd.c,v 1.14 1997/03/28 15:48:17 imp Exp $
*/
#ifndef lint
@@ -303,8 +303,12 @@ doit(fromp)
#ifdef KERBEROS
if (!use_kerberos)
#endif
- if (port >= IPPORT_RESERVED) {
- syslog(LOG_ERR, "2nd port not reserved\n");
+ if (port >= IPPORT_RESERVED ||
+ port < IPPORT_RESERVED/2) {
+ syslog(LOG_NOTICE|LOG_AUTH,
+ "2nd socket from %s on unreserved port %u",
+ inet_ntoa(fromp->sin_addr),
+ port);
exit(1);
}
fromp->sin_port = htons(port);