diff options
author | Ruslan Ermilov <ru@FreeBSD.org> | 2000-08-30 14:43:02 +0000 |
---|---|---|
committer | Ruslan Ermilov <ru@FreeBSD.org> | 2000-08-30 14:43:02 +0000 |
commit | 3e065e76ace960fb036b9d3212a038f8108b4fe5 (patch) | |
tree | 0319b39b05fd165e3c396390c191f32949f31fcb /sys/netinet/ip_divert.c | |
parent | 6159b9dd5b3fecf9a94d0295b03f69a0aa734952 (diff) | |
download | src-3e065e76ace960fb036b9d3212a038f8108b4fe5.tar.gz src-3e065e76ace960fb036b9d3212a038f8108b4fe5.zip |
Fixed the bug that div_bind() always returned zero
even if there was an error (broken in rev 1.9).
Notes
Notes:
svn path=/head/; revision=65260
Diffstat (limited to 'sys/netinet/ip_divert.c')
-rw-r--r-- | sys/netinet/ip_divert.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/ip_divert.c b/sys/netinet/ip_divert.c index 77ab70fdefc5..b2f92b823cdf 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 |