Paul Keogh wrote:
> 
> In the function parse_content (), the lines
> 
>     while (octstr_get_char(*address, pos) !=
>                octstr_get_char(nameos, 0) && pos >= 0) {
>         pos = drop_character(address, pos);
>     }
> 
> should be replaced with
> 
>     while ((octstr_len (*address) > 0) && octstr_get_char(*address, pos) !=
>                octstr_get_char(nameos, 0) && pos >= 0) {
>         pos = drop_character(address, pos);
>     }
> 
> otherwise an infinite loop results. This is easy to reproduce. Drop
> the /TYPE=xxx from an address in the PAP document. This should give
> back an error; instead the WAP box hangs in an infinite loop.

commited to cvs.

Thanks Paul!

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

Reply via email to