lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] http server and pbuf overflow


From: address@hidden
Subject: Re: [lwip-users] http server and pbuf overflow
Date: Thu, 21 Jan 2010 08:03:16 +0100
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; de; rv:1.9.1.7) Gecko/20100111 Thunderbird/3.0.1

Bernhard 'Gustl' Bauer wrote:
I checked my http_recv(). I have 3 different exits:
1: pbuf_free(); tcp_abort(); return ERR_ABORT;
2: tcp_receved(); pbuf_free(); tcp_abort(); return ERR_ABORT;
3: tcp_receved(); pbuf_free(); return ERR_OK;
Is there anything wrong with an exit? Do I need tcp_recved() before
tcp_abort(); return ERR_ABORT; ?
tcp_abort currently shouldn't be used from one of the callback functions: http://savannah.nongnu.org/bugs/?27871

Can you try replacing that with tcp_close(); and return ERR_OK;? In any case, calling tcp_recved() won't hurt, too. (Although before tcp_abort, it shouldn't be necessary - once the above bug is fixed.)

Simon




reply via email to

[Prev in Thread] Current Thread [Next in Thread]