diff options
author | 2014-10-14 09:52:25 +0000 | |
---|---|---|
committer | 2014-10-14 09:52:25 +0000 | |
commit | 27ae666c98839b54ee31f46d4088ba4f1bccd084 (patch) | |
tree | d31864036956f5d7a0710856890ab05ec1501154 /sys/netinet/tcp_input.c | |
parent | sync (diff) | |
download | wireguard-openbsd-27ae666c98839b54ee31f46d4088ba4f1bccd084.tar.xz wireguard-openbsd-27ae666c98839b54ee31f46d4088ba4f1bccd084.zip |
Use rtfree() instead of RTFREE(), NULLify some free'd route pointers and
kill the macro.
ok mikeb@, henning@
Diffstat (limited to 'sys/netinet/tcp_input.c')
-rw-r--r-- | sys/netinet/tcp_input.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c index 9f782e3477f..13f8b62be71 100644 --- a/sys/netinet/tcp_input.c +++ b/sys/netinet/tcp_input.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tcp_input.c,v 1.279 2014/10/08 20:19:58 bluhm Exp $ */ +/* $OpenBSD: tcp_input.c,v 1.280 2014/10/14 09:52:26 mpi Exp $ */ /* $NetBSD: tcp_input.c,v 1.23 1996/02/13 23:43:44 christos Exp $ */ /* @@ -3372,8 +3372,10 @@ syn_cache_put(struct syn_cache *sc) { if (sc->sc_ipopts) (void) m_free(sc->sc_ipopts); - if (sc->sc_route4.ro_rt != NULL) - RTFREE(sc->sc_route4.ro_rt); + if (sc->sc_route4.ro_rt != NULL) { + rtfree(sc->sc_route4.ro_rt); + sc->sc_route4.ro_rt = NULL; + } timeout_set(&sc->sc_timer, syn_cache_reaper, sc); timeout_add(&sc->sc_timer, 0); } |