Re: [BUG] wsp_headers.c, header's handling in Connect PDU
Vjacheslav Chekushin <[email protected]>
| Newsgroups | gmane.comp.mobile.kannel.devel |
|---|---|
| Organization | LMT |
| Message-ID | <[email protected]> |
Hi, Stipe.
It doesn't help, because
ret = wsp_secondary_field_value(context, &val)
return error on context, not WSP_FIELD_VALUE_NONE!
I've wrote quick hack to make this phone to work:
int wsp_secondary_field_value(ParseContext *context, long *result)
{
int val;
long length;
+ if (parse_octets_left(context) == 0) {
+ *result = 0;
+ return WSP_FIELD_VALUE_NONE;
+ }
/* this parse_get_char() return -1 because earlier in wsp_field_value()
we set parse_limit(context, 0) and any parse operation will return -1
because parse_octets_left = 0 */
val = parse_get_char(context);
if (val == 0) {
*result = 0;
return WSP_FIELD_VALUE_NONE;
} else if (val > 0 && val < 31) {
Stipe Tolj wrote:
> Ok,
>
> ow about trying this patch and access with the device again to see
> what happens.
>
> Stipe
>
> mailto:[email protected]
> -------------------------------------------------------------------
> Wapme Systems AG
>
> Münsterstr. 248
> 40470 Düsseldorf, NRW, Germany
>
--
Vjacheslav Chekushin mailto:[email protected]
Latvian Mobile Phone Company http://www.lmt.lv