fixed a possible segmentation fault in gw/bb_smscconn.c:smsc2_status

Stipe Tolj <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Organization Wapme Systems AG
Message-ID <[email protected]>
we have noticed a strange segmenation faulting with additional core
dumping if certain emi2 links dropped and our system monitor triggered
the status page to parse the XML content of the smsc states.

I suppose this has been caused by accessing smscconn_id() and
smscconn_name() directly from smsc2_status() which did not check if
the SMSCConn *conn reference pointer was not NULL.

The latest commit to cvs should fix this bug. Please update you system
and confirm that everything is as it should. Please complain to the
list if you notice a strage behaviour.

This fix should definitely go into the stable branch.

Stipe

[email protected]
-------------------------------------------------------------------
Wapme Systems AG

Vogelsanger Weg 80
40470 Düsseldorf

Tel: +49-211-74845-0
Fax: +49-211-74845-299

E-Mail: [email protected]
Internet: http://www.wapme-systems.de
-------------------------------------------------------------------
wapme.net - wherever you are
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.