summaryrefslogtreecommitdiff
path: root/sys/netinet/ip_output.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/netinet/ip_output.c')
-rw-r--r--sys/netinet/ip_output.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/netinet/ip_output.c b/sys/netinet/ip_output.c
index d3ffe059420..14e9c3591a5 100644
--- a/sys/netinet/ip_output.c
+++ b/sys/netinet/ip_output.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_output.c,v 1.75 2000/06/18 07:30:45 itojun Exp $ */
+/* $OpenBSD: ip_output.c,v 1.76 2000/06/18 21:54:40 angelos Exp $ */
/* $NetBSD: ip_output.c,v 1.28 1996/02/13 23:43:07 christos Exp $ */
/*
@@ -182,9 +182,9 @@ ip_output(m0, va_alist)
*/
if (inp != NULL && inp->inp_tdb != NULL &&
ip->ip_src.s_addr == INADDR_ANY &&
- tdb->tdb_dst.sa.sa_family == AF_INET &&
- tdb->tdb_dst.sin.sin_addr.s_addr != AF_INET) {
- ip->ip_src.s_addr = tdb->tdb_dst.sin.sin_addr.s_addr;
+ tdb->tdb_src.sa.sa_family == AF_INET &&
+ tdb->tdb_src.sin.sin_addr.s_addr != INADDR_ANY) {
+ ip->ip_src.s_addr = tdb->tdb_src.sin.sin_addr.s_addr;
splx(s);
goto skip_routing;
}