Re: BUG+FIX - panic in octstr.c
Stipe Tolj <[email protected]>
| Newsgroups | gmane.comp.mobile.kannel.devel |
|---|---|
| Organization | Wapme Systems AG |
| Message-ID | <[email protected]> |
ok,
Andreas somehow convinced me for this:
void octstr_url_encode(Octstr *ostr)
{
int i, n, newlen;
unsigned char *str, *str2, *hexits;
unsigned char c;
Octstr *res;
seems_valid(ostr);
if (ostr->immutable || ostr->len == 0)
return;
...
so if ostr is an immutable we simply bounce out as if it had 0 len.
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