Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-5]: src/sys/netinet pullup 1.117 -> 1.118 (approved by releng-1-5)
details: https://anonhg.NetBSD.org/src/rev/46cb485c7663
branches: netbsd-1-5
changeset: 489282:46cb485c7663
user: itojun <itojun%NetBSD.org@localhost>
date: Sun Aug 27 01:11:04 2000 +0000
description:
pullup 1.117 -> 1.118 (approved by releng-1-5)
> make sure anonport{min,max} is not negative number
diffstat:
sys/netinet/ip_input.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (29 lines):
diff -r eaf5cebf3698 -r 46cb485c7663 sys/netinet/ip_input.c
--- a/sys/netinet/ip_input.c Sun Aug 27 00:51:08 2000 +0000
+++ b/sys/netinet/ip_input.c Sun Aug 27 01:11:04 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ip_input.c,v 1.114.4.1 2000/08/26 16:38:33 tron Exp $ */
+/* $NetBSD: ip_input.c,v 1.114.4.2 2000/08/27 01:11:04 itojun Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -1665,7 +1665,8 @@
case IPCTL_ANONPORTMIN:
old = anonportmin;
error = sysctl_int(oldp, oldlenp, newp, newlen, &anonportmin);
- if (anonportmin >= anonportmax || anonportmin > 65535
+ if (anonportmin >= anonportmax || anonportmin < 0
+ || anonportmin > 65535
#ifndef IPNOPRIVPORTS
|| anonportmin < IPPORT_RESERVED
#endif
@@ -1677,7 +1678,8 @@
case IPCTL_ANONPORTMAX:
old = anonportmax;
error = sysctl_int(oldp, oldlenp, newp, newlen, &anonportmax);
- if (anonportmin >= anonportmax || anonportmax > 65535
+ if (anonportmin >= anonportmax || anonportmax < 0
+ || anonportmax > 65535
#ifndef IPNOPRIVPORTS
|| anonportmax < IPPORT_RESERVED
#endif
Home |
Main Index |
Thread Index |
Old Index