summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorhenning <henning@openbsd.org>2006-06-17 10:22:06 +0000
committerhenning <henning@openbsd.org>2006-06-17 10:22:06 +0000
commitce14479b5ddf95ed4071834b051d1620833a4276 (patch)
tree50c9b038a86a89bf792c59ec066d5d0a9547c428 /sys
parentDo not leak file descriptor in error path. From Andrey Matveev (diff)
downloadwireguard-openbsd-ce14479b5ddf95ed4071834b051d1620833a4276.tar.xz
wireguard-openbsd-ce14479b5ddf95ed4071834b051d1620833a4276.zip
unbreak; from theo
Diffstat (limited to 'sys')
-rw-r--r--sys/net/if_atm.h4
-rw-r--r--sys/netinet/if_atm.c6
2 files changed, 5 insertions, 5 deletions
diff --git a/sys/net/if_atm.h b/sys/net/if_atm.h
index aaf496f9377..9913a9590ac 100644
--- a/sys/net/if_atm.h
+++ b/sys/net/if_atm.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_atm.h,v 1.11 2002/03/14 01:27:09 millert Exp $ */
+/* $OpenBSD: if_atm.h,v 1.12 2006/06/17 10:22:06 henning Exp $ */
/*
*
@@ -38,7 +38,7 @@
#ifndef _NET_IF_ATM_H_
#define _NET_IF_ATM_H_
-#define RTALLOC1(A,B) rtalloc1((A),(B))
+#define RTALLOC1(A,B) rtalloc1((A),(B), 0)
/*
* pseudo header for packet transmission
diff --git a/sys/netinet/if_atm.c b/sys/netinet/if_atm.c
index d023d86fc05..ffefcb7b8ce 100644
--- a/sys/netinet/if_atm.c
+++ b/sys/netinet/if_atm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_atm.c,v 1.12 2005/04/16 14:28:57 deraadt Exp $ */
+/* $OpenBSD: if_atm.c,v 1.13 2006/06/17 10:22:06 henning Exp $ */
/*
*
@@ -109,7 +109,7 @@ atm_rtrequest(req, rt, info)
*/
if ((rt->rt_flags & RTF_HOST) == 0) {
- rt_setgate(rt,rt_key(rt),(struct sockaddr *)&null_sdl);
+ rt_setgate(rt,rt_key(rt),(struct sockaddr *)&null_sdl, 0);
gate = rt->rt_gateway;
SDL(gate)->sdl_type = rt->rt_ifp->if_type;
SDL(gate)->sdl_index = rt->rt_ifp->if_index;
@@ -174,7 +174,7 @@ failed:
}
#endif
rtrequest(RTM_DELETE, rt_key(rt), (struct sockaddr *)0,
- rt_mask(rt), 0, (struct rtentry **) 0);
+ rt_mask(rt), 0, (struct rtentry **) 0, 0);
break;
case RTM_DELETE: