BUG: segmentation fault with unexpected http server answer

(sorry for off-topic, but www-lib-bugs@w3.org doesnt seem 
to work)

When doing any HTTP client request, library fails 
(segmentation fault) if server returns unexpected answer.
How to reproduce:
1) run: netcat -l -p $port
2) connect to this port via Libwww
3) type in netcat window "200 OK\n"
Client app is crashed.

I guess, that problem is in line 674 in HTTP.c file - 
HTNextField(&ptr) can return NULL and it is needed to check 
it"s result against NULL before passing result to the atoi
() function.

=Alex
__________
www.newmail.ru -- Новая Почта: все по новому.

Received on Thursday, 6 December 2001 13:32:50 UTC