diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-06-27 08:07:59 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-06-27 08:07:59 +0000 |
commit | 5b7d1fce1b5e476e4e95011e96c502dea5939af2 (patch) | |
tree | 649fed291e078cf9815dcf3362e40a283300574c /sys | |
parent | bf9928833e266260436d77a345724aa6ce1d7edd (diff) |
delete extra KFREE(); d@openbsd.org
Diffstat (limited to 'sys')
-rw-r--r-- | sys/netinet/ip_nat.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/netinet/ip_nat.c b/sys/netinet/ip_nat.c index b8bcd234319..d35347ca898 100644 --- a/sys/netinet/ip_nat.c +++ b/sys/netinet/ip_nat.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_nat.c,v 1.14 1998/02/17 01:39:05 dgregor Exp $ */ +/* $OpenBSD: ip_nat.c,v 1.15 1998/06/27 08:07:58 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.14 1998/02/17 01:39:05 dgregor Exp $"; +static const char rcsid[] = "@(#)$Id: ip_nat.c,v 1.15 1998/06/27 08:07:58 deraadt Exp $"; #endif #if defined(__FreeBSD__) && defined(KERNEL) && !defined(_KERNEL) @@ -498,10 +498,8 @@ struct in_addr *inp; } if (!ifa) sin = NULL; - if (!sin) { - KFREE(nat); + if (!sin) return -1; - } # endif /* (BSD < 199306) && (!__sgi && IFF_DRVLOCK) */ in = sin->sin_addr; in.s_addr = ntohl(in.s_addr); |