aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-tcp.c
diff options
context:
space:
mode:
Diffstat (limited to 'epan/dissectors/packet-tcp.c')
-rw-r--r--epan/dissectors/packet-tcp.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/epan/dissectors/packet-tcp.c b/epan/dissectors/packet-tcp.c
index fcca74f9f0..214fa430ee 100644
--- a/epan/dissectors/packet-tcp.c
+++ b/epan/dissectors/packet-tcp.c
@@ -848,7 +848,20 @@ pdu_store_window_scale_option(guint8 ws, struct tcp_analysis *tcpd)
static void
tcp_analyze_get_acked_struct(guint32 frame, guint32 seq, guint32 ack, gboolean createflag, struct tcp_analysis *tcpd)
{
- wmem_tree_key_t key[] = {{1, &frame}, {1, &seq}, {1, &ack}, {0, NULL}};
+
+ wmem_tree_key_t key[4];
+
+ key[0].length = 1;
+ key[0].key = &frame;
+
+ key[1].length = 1;
+ key[1].key = &seq;
+
+ key[2].length = 1;
+ key[2].key = &ack;
+
+ key[3].length = 0;
+ key[3].key = NULL;
if (!tcpd) {
return;