[PATCH] * Fix null ptr dereference and sms memleak in case the recipient of an sms sent via vty is not attached. Store the sms in the database in this case for later delivery.

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/OpenBSC@lists.osmocom.org/.

Harald Welte laforge at gnumonks.org
Wed Jun 30 07:09:40 UTC 2010


On Tue, Jun 29, 2010 at 08:13:06PM +0200, Nico Golde wrote:
> The problem is that sms_from_text returns NULL in case the
> subscriber is not attached which a) leaks memory of the 
> previously allocated sms and b) runs into a null ptr 
> dereference in _send_sms_str().

nice catch!

I'll apply your patch right now.
-- 
- Harald Welte <laforge at gnumonks.org>           http://laforge.gnumonks.org/
============================================================================
"Privacy in residential applications is a desirable marketing option."
                                                  (ETSI EN 300 175-7 Ch. A6)




More information about the OpenBSC mailing list