diff options
author | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2003-01-20 01:34:27 +0000 |
---|---|---|
committer | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2003-01-20 01:34:27 +0000 |
commit | 0d9454eea40690961ce2b409f80672952ec62d65 (patch) | |
tree | 1e29f4dc6b498b5f54c2a53f14e701927f4878c1 /sys | |
parent | 5681661de7f2eaf7d36948b64c1734dfba5eae57 (diff) |
just for safety. from http://templeofhate.com/tglaser/pub/obsd.diff
Diffstat (limited to 'sys')
-rw-r--r-- | sys/net/if_gif.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/net/if_gif.c b/sys/net/if_gif.c index 018350d17a0..1ffbeb66212 100644 --- a/sys/net/if_gif.c +++ b/sys/net/if_gif.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_gif.c,v 1.25 2002/06/30 13:04:36 itojun Exp $ */ +/* $OpenBSD: if_gif.c,v 1.26 2003/01/20 01:34:26 itojun Exp $ */ /* $KAME: if_gif.c,v 1.43 2001/02/20 08:51:07 itojun Exp $ */ /* @@ -298,6 +298,9 @@ gif_ioctl(ifp, cmd, data) &(((struct if_laddrreq *)data)->addr); dst = (struct sockaddr *) &(((struct if_laddrreq *)data)->dstaddr); + break; + default: + return EINVAL; } /* sa_family must be equal */ |