diff options
author | 1998-10-11 05:37:28 +0000 | |
---|---|---|
committer | 1998-10-11 05:37:28 +0000 | |
commit | 4cb15661294f4283ae472306e16448a671144fff (patch) | |
tree | f31775c4a31ca6405070cf94618833f8e9536ce3 | |
parent | NAT_MAP is now a flag; garath@code.ridgefield.org (diff) | |
download | wireguard-openbsd-4cb15661294f4283ae472306e16448a671144fff.tar.xz wireguard-openbsd-4cb15661294f4283ae472306e16448a671144fff.zip |
bad ioctls return EINVAL; garath@code.ridgefield.org
-rw-r--r-- | sys/netinet/ip_nat.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/netinet/ip_nat.c b/sys/netinet/ip_nat.c index d6ba6def145..e5dfe2a3124 100644 --- a/sys/netinet/ip_nat.c +++ b/sys/netinet/ip_nat.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_nat.c,v 1.16 1998/09/15 09:51:18 pattonme Exp $ */ +/* $OpenBSD: ip_nat.c,v 1.17 1998/10/11 05:37:28 deraadt Exp $ */ /* * Copyright (C) 1995-1997 by Darren Reed. * @@ -10,7 +10,7 @@ */ #if !defined(lint) static const char sccsid[] = "@(#)ip_nat.c 1.11 6/5/96 (C) 1995 Darren Reed"; -static const char rcsid[] = "@(#)$Id: ip_nat.c,v 1.16 1998/09/15 09:51:18 pattonme Exp $"; +static const char rcsid[] = "@(#)$Id: ip_nat.c,v 1.17 1998/10/11 05:37:28 deraadt Exp $"; #endif #if defined(__FreeBSD__) && defined(KERNEL) && !defined(_KERNEL) @@ -351,6 +351,9 @@ int mode; sizeof(iplused[IPL_LOGNAT])); #endif break; + default : + error = EINVAL; + break; } RWLOCK_EXIT(&ipf_nat); SPL_X(s); |