Add new UEs to the end of the list.
authormartinm <martinm@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 20 Jul 2010 08:57:15 +0000 (08:57 +0000)
committermartinm <martinm@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 20 Jul 2010 08:57:15 +0000 (08:57 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@33589 f5534014-38df-0310-8fa8-9805f1628bb7

gtk/mac_lte_stat_dlg.c

index 79d692f53fa77e49dc932fa52889afc8abadcf92..ae1f551ae78f5e1ffaad4e1554e71be44e0dada1 100644 (file)
@@ -375,9 +375,13 @@ mac_lte_stat_packet(void *phs, packet_info *pinfo, epan_dissect_t *edt _U_,
         /* Not found among existing, so create a new one anyway */
         if (te == NULL) {
             if ((te = alloc_mac_lte_ep(si, pinfo))) {
-                /* New item is head of list */
-                te->next = hs->ep_list;
-                hs->ep_list = te;
+                /* Add new item to end of list */
+                mac_lte_ep_t *p = hs->ep_list;
+                while (p->next) {
+                    p = p->next;
+                }
+                p->next = te;
+                te->next = NULL;
 
                 /* Update counts of unique ueids & rntis */
                 update_ueid_rnti_counts(si->rnti, si->ueid, hs);