diff options
Diffstat (limited to 'sys/netinet/libalias/alias_util.c')
-rw-r--r-- | sys/netinet/libalias/alias_util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/libalias/alias_util.c b/sys/netinet/libalias/alias_util.c index 14df53d..687168e 100644 --- a/sys/netinet/libalias/alias_util.c +++ b/sys/netinet/libalias/alias_util.c @@ -102,7 +102,7 @@ TcpChecksum(struct ip *pip) nhdr = pip->ip_hl << 2; ntcp = ntohs(pip->ip_len) - nhdr; - tc = (struct tcphdr *)((char *)pip + nhdr); + tc = (struct tcphdr *)ip_next(pip); ptr = (u_short *) tc; /* Add up TCP header and data */ |