From 0d9454eea40690961ce2b409f80672952ec62d65 Mon Sep 17 00:00:00 2001 From: Jun-ichiro itojun Hagino Date: Mon, 20 Jan 2003 01:34:27 +0000 Subject: just for safety. from http://templeofhate.com/tglaser/pub/obsd.diff --- sys/net/if_gif.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'sys') 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 */ -- cgit v1.2.3