summaryrefslogtreecommitdiffstats
path: root/sys/netinet/ip_divert.c
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2000-08-30 14:43:02 +0000
committerru <ru@FreeBSD.org>2000-08-30 14:43:02 +0000
commit789ebca13b08814d2db274813c3b4943dc0d5989 (patch)
tree4d94a9b8ceba3a07b0287be65dbd63b675ed4ac8 /sys/netinet/ip_divert.c
parentcea09e03a42e47d0a87fd1f66afadaf9680d59e1 (diff)
downloadFreeBSD-src-789ebca13b08814d2db274813c3b4943dc0d5989.zip
FreeBSD-src-789ebca13b08814d2db274813c3b4943dc0d5989.tar.gz
Fixed the bug that div_bind() always returned zero
even if there was an error (broken in rev 1.9).
Diffstat (limited to 'sys/netinet/ip_divert.c')
-rw-r--r--sys/netinet/ip_divert.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/ip_divert.c b/sys/netinet/ip_divert.c
index 77ab70f..b2f92b8 100644
--- a/sys/netinet/ip_divert.c
+++ b/sys/netinet/ip_divert.c
@@ -423,7 +423,7 @@ div_bind(struct socket *so, struct sockaddr *nam, struct proc *p)
error = in_pcbbind(inp, nam, p);
}
splx(s);
- return 0;
+ return error;
}
static int
OpenPOWER on IntegriCloud