summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>1998-11-25 01:03:00 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>1998-11-25 01:03:00 +0000
commit3ec2cbbcacf78f222465eb1191752be689030d35 (patch)
tree86a2df3601785c90503df79a4daf2b5a4754c7f4 /sys
parentbb47551a102c5fe2b9a2f03e559fdaf09ffc655e (diff)
Tell caller of error condition
Diffstat (limited to 'sys')
-rw-r--r--sys/netinet/ip_esp_new.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/ip_esp_new.c b/sys/netinet/ip_esp_new.c
index 4990064093e..4459236771b 100644
--- a/sys/netinet/ip_esp_new.c
+++ b/sys/netinet/ip_esp_new.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_esp_new.c,v 1.24 1998/08/01 08:35:12 provos Exp $ */
+/* $OpenBSD: ip_esp_new.c,v 1.25 1998/11/25 01:02:59 niklas Exp $ */
/*
* The authors of this code are John Ioannidis (ji@tla.org),
@@ -895,7 +895,7 @@ esp_new_output(struct mbuf *m, struct sockaddr_encap *gw, struct tdb *tdb,
tdb->tdb_dst, ntohl(tdb->tdb_spi));
m_freem(m);
espstat.esps_wrap++;
- return NULL;
+ return ENOBUFS;
}
espo.esp_spi = tdb->tdb_spi;