|
Fw: Re: Bug in wsp_unit.c ?: msg#00106mobile.kannel.user
Begin forwarded message: Date: Thu, 21 Nov 2002 11:19:25 +0300 From: Yury Mikhienko <yuryx@xxxxxxxxxxxxxxxxxx> To: slava@xxxxxx Subject: Re: Bug in wsp_unit.c ? Hi Vjacheslav! > > Seems that there is bug in wsp_unit.c > > static void main_thread(void *arg) { > WAPEvent *e; > WAPEvent *newevent; > > while (run_status == running && (e = list_consume(queue)) != NULL) { > wap_event_assert(e); > switch (e->type) { > case T_DUnitdata_Ind: > newevent = unpack_datagram(e); > /* MUST BE INSERTED if (newevent != NULL) */ > dispatch_to_appl(newevent); > > unpack_datagram returns NULL > (> 2002-11-12 09:21:45 [2] WARNING: WSP PDU with unknown type -1) > and dispatch NULL to wap-appl.c > > So later in wap-appl.c we have (main_thread): > while (run_status == running && (ind = list_consume(queue)) != NULL) { > } > > and list_consume breaks the loop and > > > 2002-11-12 09:21:45 [6] DEBUG: Thread 6 (gw/wap-appl.c:main_thread) > terminates. > > So any following requests will not be processed. > > I think we must insert check for NULL (see above, line /* MUST BE INSERTED) > > -- > Vjacheslav Chekushin mailto:sck@xxxxxx > Latvian Mobile Phone Company http://www.lmt.lv In Bug list? -- Best regards, Yury Mikhienko. IT engineer, ZAO "Mobicom-Kavkaz" -- Best regards, Yury Mikhienko. IT engineer, ZAO "Mobicom-Kavkaz" |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | general question: 00106, Martin Baur |
|---|---|
| Next by Date: | Re: PPG configuration: 00106, Aarno Syvänen |
| Previous by Thread: | general questioni: 00106, Martin Baur |
| Next by Thread: | Samsung OTA settings?: 00106, Peter Löfman |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |