summaryrefslogtreecommitdiff
path: root/sys/net
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1997-11-15 00:07:10 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1997-11-15 00:07:10 +0000
commitf7f2b7d1eead7023651e706ae944fb123704a8ff (patch)
tree8c504b93f6a43367e07349815000137f29c0d16b /sys/net
parentd098e9c0ee094138f6389c98e1e5cce0d3710acd (diff)
fix memory management errors
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/encap.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/net/encap.c b/sys/net/encap.c
index 8244e90caf4..48267fb46e7 100644
--- a/sys/net/encap.c
+++ b/sys/net/encap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: encap.c,v 1.18 1997/11/04 09:10:53 provos Exp $ */
+/* $OpenBSD: encap.c,v 1.19 1997/11/15 00:07:06 deraadt Exp $ */
/*
* The author of this code is John Ioannidis, ji@tla.org,
@@ -364,7 +364,10 @@ va_dcl
error = tdb_init(tdbp, m);
if (error)
- SENDERR(EINVAL);
+ {
+ tdb_delete(tdbp, 0);
+ SENDERR(EINVAL);
+ }
break;