Bug in wap_push_ppg.c ?
"Paul Keogh" <[email protected]>
| Newsgroups | gmane.comp.mobile.kannel.devel |
|---|---|
| Message-ID | <[email protected]> |
The function send_to_pi () takes a first argument of HTTPClient *c. This is passed directly to http_send_reply (c...). If the c is NULL http_send_reply () crashes as it immediately deferences c. I don't think send_to_pi () should assume that the PI is still around and hence should check that the HTTPClient ptr is non-NULL before invoking http_send_reply (). Paul Keogh ANAM Wireless Internet Solutions http://www.anam.com +353 1 284 7555 (wired) +353 86 234 6047 (wireless) Castle Yard, Saint Patrick's Road, Dalkey, County Dublin, Ireland