updated on Wed Jan 18 16:10:53 UTC 2012
[aur-mirror.git] / ettercap-gtk / fix-segmentation-fault.patch
blob3f0c7bf7912c09fb57e7620191781917a34e10fb
1 commit 8cdf08d401d368d5678f9d9c2cf36ddbdef03aec
2 Author: Timothy Redaelli <timothy@redaelli.eu>
3 Date: Tue Jun 23 09:16:27 2009 +0000
5 Fix a crash in 64 bit CPUs
7 diff --git a/src/protocols/ec_tcp.c b/src/protocols/ec_tcp.c
8 index ea0c997..be8f3e0 100644
9 --- a/src/protocols/ec_tcp.c
10 +++ b/src/protocols/ec_tcp.c
11 @@ -116,7 +116,7 @@ FUNC_DECODER(decode_tcp)
12 tcp = (struct tcp_header *)DECODE_DATA;
14 opt_start = (u_char *)(tcp + 1);
15 - opt_end = (u_char *)((int)tcp + tcp->off * 4);
16 + opt_end = (u_char *)(tcp + tcp->off * 4);
18 DECODED_LEN = (u_int32)(tcp->off * 4);