mncc_sock: properly append an element to the end of the list
[lcr.git] / gsm_bs.cpp
index 78ef8af..8bb647f 100644 (file)
@@ -815,6 +815,7 @@ static int mncc_q_enqueue(struct gsm_mncc *mncc, unsigned int len)
        } else {
                /* append to tail of list */
                gsm->mncc_q_tail->next = qe;
+               gsm->mncc_q_tail = qe;
        }
 
        gsm->mncc_lfd.when |= LCR_FD_WRITE;