diff options
author | Martin Mathieson <martin.r.mathieson@googlemail.com> | 2012-10-10 23:09:52 +0000 |
---|---|---|
committer | Martin Mathieson <martin.r.mathieson@googlemail.com> | 2012-10-10 23:09:52 +0000 |
commit | 6f112aa1159573aab234c7175dcb07a85f1f3b49 (patch) | |
tree | 3945b908422e84358e22a335eb9d7e326a7f0174 /ui | |
parent | b8b899fc36a8ed17961cffcff5336fa76877026d (diff) |
Copy of tap details needed to be a little bit deeper.
svn path=/trunk/; revision=45458
Diffstat (limited to 'ui')
-rw-r--r-- | ui/gtk/tcp_graph.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ui/gtk/tcp_graph.c b/ui/gtk/tcp_graph.c index fb4c67cd5f..324070164f 100644 --- a/ui/gtk/tcp_graph.c +++ b/ui/gtk/tcp_graph.c @@ -1888,7 +1888,11 @@ tap_tcpip_packet(void *pct, packet_info *pinfo _U_, epan_dissect_t *edt _U_, con /* Need to take a deep copy of the tap struct, it may not be valid to read after this function returns? */ th->tcphdrs[th->num_hdrs] = g_malloc(sizeof(struct tcpheader)); - *(th->tcphdrs[th->num_hdrs++]) = *header; + *(th->tcphdrs[th->num_hdrs]) = *header; + COPY_ADDRESS(&th->tcphdrs[th->num_hdrs]->ip_src, &header->ip_src); + COPY_ADDRESS(&th->tcphdrs[th->num_hdrs]->ip_dst, &header->ip_dst); + + th->num_hdrs++; } return 0; |