diff options
author | Markus Friedl <markus@cvs.openbsd.org> | 2004-02-11 20:12:34 +0000 |
---|---|---|
committer | Markus Friedl <markus@cvs.openbsd.org> | 2004-02-11 20:12:34 +0000 |
commit | a508a6c0b61f39ceb6a7d44cd86013afc06e09cb (patch) | |
tree | 224cc91dc10a8f7964a055f29a84917a16783d55 /sys | |
parent | 504315bc7c326c62e9165ee53b0d16591f2f88d4 (diff) |
make mss signed; avoids large mss if ifp==NULL; ok itojun@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/netinet/tcp_input.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c index 7a7143237e9..f97c74cf018 100644 --- a/sys/netinet/tcp_input.c +++ b/sys/netinet/tcp_input.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tcp_input.c,v 1.154 2004/02/10 10:30:24 markus Exp $ */ +/* $OpenBSD: tcp_input.c,v 1.155 2004/02/11 20:12:33 markus Exp $ */ /* $NetBSD: tcp_input.c,v 1.23 1996/02/13 23:43:44 christos Exp $ */ /* @@ -3260,7 +3260,7 @@ tcp_newreno(tp, th) static int tcp_mss_adv(struct ifnet *ifp, int af) { - u_int16_t mss = 0; + int mss = 0; int iphlen; switch (af) { |