diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2016-01-22 11:10:18 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2016-01-22 11:10:18 +0000 |
commit | 37ef96383fc59825c607daab79b2c074204c9f72 (patch) | |
tree | c75a82aa2363ae3969588a39162fab07b2f23028 | |
parent | 184bcecc2e8e2bbbbeab231b8b58194ab6367c4d (diff) |
fix a missing if_put() in the default af path of tcp_mss()
ok mpi@
-rw-r--r-- | sys/netinet/tcp_input.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c index a495f54fe31..3fa82c5b593 100644 --- a/sys/netinet/tcp_input.c +++ b/sys/netinet/tcp_input.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tcp_input.c,v 1.312 2015/12/05 10:52:26 tedu Exp $ */ +/* $OpenBSD: tcp_input.c,v 1.313 2016/01/22 11:10:17 jsg Exp $ */ /* $NetBSD: tcp_input.c,v 1.23 1996/02/13 23:43:44 christos Exp $ */ /* @@ -2954,7 +2954,7 @@ int tcp_mss(struct tcpcb *tp, int offer) { struct rtentry *rt; - struct ifnet *ifp; + struct ifnet *ifp = NULL; int mss, mssopt; int iphlen; struct inpcb *inp; @@ -3028,8 +3028,8 @@ tcp_mss(struct tcpcb *tp, int offer) mssopt = ifp->if_mtu - iphlen - sizeof(struct tcphdr); mssopt = max(tcp_mssdflt, mssopt); } - if_put(ifp); out: + if_put(ifp); /* * The current mss, t_maxseg, is initialized to the default value. * If we compute a smaller value, reduce the current mss. |