diff options
author | Markus Friedl <markus@cvs.openbsd.org> | 2005-11-28 15:19:21 +0000 |
---|---|---|
committer | Markus Friedl <markus@cvs.openbsd.org> | 2005-11-28 15:19:21 +0000 |
commit | 1dca816c43cc8b1b091b75828ab1c009134420ee (patch) | |
tree | c8453d448d5eb5df9207a69a18d0c849541cf158 /sys/net/route.c | |
parent | 4c702bd317908715d7de025696a7fc402a6c5e4e (diff) |
unbreak route deletion (from revision 1.55; obviously too much eyebleeding)
Diffstat (limited to 'sys/net/route.c')
-rw-r--r-- | sys/net/route.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/route.c b/sys/net/route.c index 5b721c5698a..4f43d6a2607 100644 --- a/sys/net/route.c +++ b/sys/net/route.c @@ -1,4 +1,4 @@ -/* $OpenBSD: route.c,v 1.59 2005/11/27 16:22:45 henning Exp $ */ +/* $OpenBSD: route.c,v 1.60 2005/11/28 15:19:20 markus Exp $ */ /* $NetBSD: route.c,v 1.14 1996/02/13 22:00:46 christos Exp $ */ /* @@ -910,7 +910,7 @@ rtinit(struct ifaddr *ifa, int cmd, int flags) dst = flags & RTF_HOST ? ifa->ifa_dstaddr : ifa->ifa_addr; if (cmd == RTM_DELETE) { if ((flags & RTF_HOST) == 0 && ifa->ifa_netmask) { - if ((m = m_get(M_DONTWAIT, MT_SONAME)) == NULL); + if ((m = m_get(M_DONTWAIT, MT_SONAME)) == NULL) return (ENOBUFS); deldst = mtod(m, struct sockaddr *); rt_maskedcopy(dst, deldst, ifa->ifa_netmask); |