diff options
author | 2014-10-14 09:52:25 +0000 | |
---|---|---|
committer | 2014-10-14 09:52:25 +0000 | |
commit | 27ae666c98839b54ee31f46d4088ba4f1bccd084 (patch) | |
tree | d31864036956f5d7a0710856890ab05ec1501154 /sys/netmpls | |
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/netmpls')
-rw-r--r-- | sys/netmpls/mpls_input.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/netmpls/mpls_input.c b/sys/netmpls/mpls_input.c index 768de856e5e..4a5aba55f3c 100644 --- a/sys/netmpls/mpls_input.c +++ b/sys/netmpls/mpls_input.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mpls_input.c,v 1.38 2014/07/22 11:06:10 mpi Exp $ */ +/* $OpenBSD: mpls_input.c,v 1.39 2014/10/14 09:52:26 mpi Exp $ */ /* * Copyright (c) 2008 Claudio Jeker <claudio@openbsd.org> @@ -325,7 +325,7 @@ do_v6: if (ifp != NULL && rt_mpls->mpls_operation != MPLS_OP_LOCAL) break; - RTFREE(rt); + rtfree(rt); rt = NULL; } @@ -355,7 +355,7 @@ do_v6: (*ifp->if_ll_output)(ifp, m, smplstosa(smpls), rt); done: if (rt) - RTFREE(rt); + rtfree(rt); } int @@ -468,12 +468,12 @@ mpls_do_error(struct mbuf *m, int type, int code, int destmtu) * less interface we need to find some other IP to * use as source. */ - RTFREE(rt); + rtfree(rt); m_freem(m); return (NULL); } rt->rt_use++; - RTFREE(rt); + rtfree(rt); if (icmp_reflect(m, NULL, ia)) return (NULL); |