-------- Original Message --------
Subject: Re: [lwip-users] HTTPD p->payload PBUF not being cleared
From: Mário_Luzeiro <email@example.com
Date: Fri, July 03, 2020 1:37 pm
To: Mailing list for lwIP users <firstname.lastname@example.org
Thanks to your email I believe I fixed the bug in my project!
I just added the pbuf_free as mention in
From what it is on the documentation:
"ATTENTION: The application is responsible for freeing the pbufs passed in!"
I think it meant to not be fixed.
On the post you mention, what I think Simon refers is that an example in the sourcecode is missing that free, not the library itself.
On relation to your payload, I'm not sure about it.
"data clear" is not the same as "memory free'ed" it can be free but it is not zeroing it.
Unless what you describe is something else?
From: lwip-users <email@example.com
> on behalf of firstname.lastname@example.org
Sent: 03 July 2020 20:35
Subject: [lwip-users] HTTPD p->payload PBUF not being cleared
I have an httpd application running and am using POST to send data to the server. Calling pbuf_free(p) does not clear the p->payload buffer. I searched the list and found this post:
Has this bug been corrected? If not, is there a manual work around to clear the payload buffer?
I am running LwIP on a STM32F407 processor board. I am not using a RTOS. If I perform a post and send as an example, abcdefgh23, the data is received correctly. If I then send again as an example, wzxcvbnm, p->payload contains wzxcvbnm23.
I am running LwIP Version 2.1.2.
lwip-users mailing list