diff options
| author | Dag-Erling Smørgrav <des@FreeBSD.org> | 2004-07-06 12:13:28 +0000 |
|---|---|---|
| committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2004-07-06 12:13:28 +0000 |
| commit | 9fa0fd268273d90e765d9ebfe0be87ea4d64e138 (patch) | |
| tree | 26f30e4465d6cc4e19885a8912879ee00b6630f9 /lib/libalias/alias_ftp.c | |
| parent | d0540ed53568e8cb710ed3d1ef71aa6cf1fb0499 (diff) | |
Notes
Diffstat (limited to 'lib/libalias/alias_ftp.c')
| -rw-r--r-- | lib/libalias/alias_ftp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libalias/alias_ftp.c b/lib/libalias/alias_ftp.c index 79938db218ed..b628528a0c1d 100644 --- a/lib/libalias/alias_ftp.c +++ b/lib/libalias/alias_ftp.c @@ -114,7 +114,7 @@ AliasHandleFtpOut( int ftp_message_type; /* Calculate data length of TCP packet */ - tc = (struct tcphdr *)((char *)pip + (pip->ip_hl << 2)); + tc = (struct tcphdr *)ip_next(pip); hlen = (pip->ip_hl + tc->th_off) << 2; tlen = ntohs(pip->ip_len); dlen = tlen - hlen; @@ -578,7 +578,7 @@ NewFtpMessage(struct libalias *la, struct ip *pip, #endif /* Calculate data length of TCP packet */ - tc = (struct tcphdr *)((char *)pip + (pip->ip_hl << 2)); + tc = (struct tcphdr *)ip_next(pip); hlen = (pip->ip_hl + tc->th_off) << 2; tlen = ntohs(pip->ip_len); dlen = tlen - hlen; |
