From: Harald Welte Date: Wed, 22 Dec 2010 21:55:30 +0000 (+0100) Subject: mncc_sock: properly append an element to the end of the list X-Git-Url: http://git.eversberg.eu/gitweb.cgi?p=lcr.git;a=commitdiff_plain;h=dd2ae2236f653cbbca28979e81bf8a8eb7b049fb mncc_sock: properly append an element to the end of the list --- diff --git a/gsm_bs.cpp b/gsm_bs.cpp index 78ef8af..8bb647f 100644 --- a/gsm_bs.cpp +++ b/gsm_bs.cpp @@ -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;