patch for dlr_mysql.c
adi <[email protected]>
| Newsgroups | gmane.comp.mobile.kannel.devel |
|---|---|
| Message-ID | <[email protected]> |
We should not let res->smsc empty. Otherwise '%i' expansion would fail (i.e empty). Here is my proposed (simple :-) patch. Sounds like the other external dlr storage have the same problem. Regards, P.Y. Adi Prasaja
dlr_mysql.patch
(text/plain, 408 B)
*** /sources/kannel/cvs/gateway/gw/dlr_mysql.c 2003-09-26 05:12:34.000000000 +0700
--- dlr_mysql.c 2003-09-26 05:36:52.000000000 +0700
***************
*** 145,150 ****
--- 145,151 ----
res = dlr_entry_create();
gw_assert(res != NULL);
+ res->smsc = octstr_duplicate(smsc);
res->mask = atoi(row[0]);
res->service = octstr_create(row[1]);
res->url = octstr_create(row[2]);