Re: [PATCH] DLRs crash smsbox using CIMD2

Stipe Tolj <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Organization Wapme Systems AG
Message-ID <[email protected]>
> --- smsc_cimd2.c.cvs    Thu Feb  6 12:55:00 2003
> +++ smsc_cimd2.c        Thu Feb  6 12:54:12 2003
> @@ -1588,8 +1588,7 @@
>          goto io_error;
> 
>  next_reply:
> -    /*reply = cimd2_get_packet(smsc,ts);*/
> -    reply = cimd2_get_packet(smsc, NULL);
> +    reply = cimd2_get_packet(smsc,ts);
>      if (!reply)
>          goto io_error;
> 
> @@ -1880,9 +1879,9 @@
>                  octstr_get_cstr(msg->sms.dlr_url),
>                  msg->sms.dlr_mask,
>                  octstr_get_cstr(msg->sms.boxc_id));
> -            octstr_destroy(ts);
> -            ts = NULL;
>         }
> +        octstr_destroy(ts);
> +        ts = NULL;
>         if (ret == 0 || ret == -1)
>              break;
>          if (cimd2_reopen(smsc) < 0) {
> 
> Please comment and vote.

+1, commited to cvs.

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.