diff options
author | deischen <deischen@FreeBSD.org> | 2004-04-02 17:57:57 +0000 |
---|---|---|
committer | deischen <deischen@FreeBSD.org> | 2004-04-02 17:57:57 +0000 |
commit | a883ccc9582e31fc0e98220ac5f6b45095e34711 (patch) | |
tree | 312260de5eb31c6ace6921c9abeb1370e89574cb | |
parent | 17daee0e028af6e27fc3596b82f9b2c24afda2d1 (diff) | |
download | FreeBSD-src-a883ccc9582e31fc0e98220ac5f6b45095e34711.zip FreeBSD-src-a883ccc9582e31fc0e98220ac5f6b45095e34711.tar.gz |
Unbreak natd.
Reported and submitted by: Sean McNeil (sean at mcneil.com)
-rw-r--r-- | lib/libalias/alias.c | 1 | ||||
-rw-r--r-- | sys/netinet/libalias/alias.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/lib/libalias/alias.c b/lib/libalias/alias.c index e02957f..42ce618 100644 --- a/lib/libalias/alias.c +++ b/lib/libalias/alias.c @@ -884,6 +884,7 @@ TcpAliasIn(struct libalias *la, struct ip *pip) /* Restore original IP address */ accumulate = twowords(&pip->ip_dst); + pip->ip_dst = original_address; accumulate -= twowords(&pip->ip_dst); /* If this is a transparent proxy packet, then modify the source diff --git a/sys/netinet/libalias/alias.c b/sys/netinet/libalias/alias.c index e02957f..42ce618 100644 --- a/sys/netinet/libalias/alias.c +++ b/sys/netinet/libalias/alias.c @@ -884,6 +884,7 @@ TcpAliasIn(struct libalias *la, struct ip *pip) /* Restore original IP address */ accumulate = twowords(&pip->ip_dst); + pip->ip_dst = original_address; accumulate -= twowords(&pip->ip_dst); /* If this is a transparent proxy packet, then modify the source |