[PATCH] http smsc crash
"Angel Fradejas" <[email protected]>
| Newsgroups | gmane.comp.mobile.kannel.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi all, Just a quick patch to fix a crash on the http smsc driver, when receiving incoming messages. (Maybe not on the first received, but on the 3rd or 4th). Simple enough to go in before new release. Cheers. Angel Fradejas Mediafusión España, S.A. [email protected] www.mediafusion.es Tel. +34 91 252 32 00 Fax +34 91 572 27 08
patch_smsc_http.diff
(application/octet-stream, 601 B)
Index: gw/smsc/smsc_http.c
===================================================================
RCS file: /home/cvs/gateway/gw/smsc/smsc_http.c,v
retrieving revision 1.4
diff -u -r1.4 smsc_http.c
--- gw/smsc/smsc_http.c 21 Jan 2003 11:07:10 -0000 1.4
+++ gw/smsc/smsc_http.c 27 Jan 2003 09:50:20 -0000
@@ -358,7 +358,7 @@
msg->sms.coding = coding;
msg->sms.validity = validity;
msg->sms.deferred = deferred;
- msg->sms.account = account;
+ msg->sms.account = octstr_duplicate(account);
ret = bb_smscconn_receive(conn, msg);
if (ret == -1)
retmsg = octstr_create("Not accepted");