aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/mac_lte_stat_dlg.c
diff options
context:
space:
mode:
authorMartin Mathieson <martin.r.mathieson@googlemail.com>2010-07-20 08:57:15 +0000
committerMartin Mathieson <martin.r.mathieson@googlemail.com>2010-07-20 08:57:15 +0000
commitd091583897fdd382c49c97f6e3a30c326b529a82 (patch)
treeed63322594f38e0860eb553b3dfb6e835680dcd1 /gtk/mac_lte_stat_dlg.c
parent0e4e77fe2e07fa325867ea10010a9ad3be2dc0b0 (diff)
Add new UEs to the end of the list.
svn path=/trunk/; revision=33589
Diffstat (limited to 'gtk/mac_lte_stat_dlg.c')
-rw-r--r--gtk/mac_lte_stat_dlg.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/gtk/mac_lte_stat_dlg.c b/gtk/mac_lte_stat_dlg.c
index 79d692f53f..ae1f551ae7 100644
--- a/gtk/mac_lte_stat_dlg.c
+++ b/gtk/mac_lte_stat_dlg.c
@@ -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);