diff options
author | Federico G. Schwindt <fgsch@cvs.openbsd.org> | 2000-01-04 21:38:57 +0000 |
---|---|---|
committer | Federico G. Schwindt <fgsch@cvs.openbsd.org> | 2000-01-04 21:38:57 +0000 |
commit | 7805e697b944bc08d6858349072c7a0ea52bfd38 (patch) | |
tree | 6777b6eca7e4ea2b871ff797866f5ba7aa834152 | |
parent | 360a08efdc5d440182b4ff14c5babd48e278a697 (diff) |
If SIOCSIFADDR fails, put back the old address before calling splx().
-rw-r--r-- | sys/netinet/in.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/in.c b/sys/netinet/in.c index 5f7414e6c30..7d3e5b73f88 100644 --- a/sys/netinet/in.c +++ b/sys/netinet/in.c @@ -1,4 +1,4 @@ -/* $OpenBSD: in.c,v 1.14 1999/12/08 06:50:19 itojun Exp $ */ +/* $OpenBSD: in.c,v 1.15 2000/01/04 21:38:56 fgsch Exp $ */ /* $NetBSD: in.c,v 1.26 1996/02/13 23:41:39 christos Exp $ */ /* @@ -633,8 +633,8 @@ in_ifinit(ifp, ia, sin, scrub) */ if (ifp->if_ioctl && (error = (*ifp->if_ioctl)(ifp, SIOCSIFADDR, (caddr_t)ia))) { - splx(s); ia->ia_addr = oldaddr; + splx(s); return (error); } splx(s); |