summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAngelos D. Keromytis <angelos@cvs.openbsd.org>1999-12-24 20:02:45 +0000
committerAngelos D. Keromytis <angelos@cvs.openbsd.org>1999-12-24 20:02:45 +0000
commit0c73efbb440e98e5f934a5b115486d1c760a903f (patch)
tree20e348b3c0b7f2214c92bd29174d3aae2e6fbcba
parent31dedffb6c0c51d5464bff6fd831da410d2c4bda (diff)
Return EINVAL instead of ENOBUFS if the source address is not specified.
-rw-r--r--sys/netinet/ip_ip4.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/ip_ip4.c b/sys/netinet/ip_ip4.c
index 2a1b73af28f..e502bda8a4f 100644
--- a/sys/netinet/ip_ip4.c
+++ b/sys/netinet/ip_ip4.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_ip4.c,v 1.43 1999/12/21 20:26:13 provos Exp $ */
+/* $OpenBSD: ip_ip4.c,v 1.44 1999/12/24 20:02:44 angelos Exp $ */
/*
* The authors of this code are John Ioannidis (ji@tla.org),
@@ -390,7 +390,7 @@ ipe4_output(struct mbuf *m, struct tdb *tdb, struct mbuf **mp, int skip,
ip4stat.ip4s_unspec++;
m_freem(m);
*mp = NULL;
- return ENOBUFS;
+ return EINVAL;
}
M_PREPEND(m, sizeof(struct ip), M_DONTWAIT);