Title: Error checking in netbuf_ref()

Hi.

Debugging my application, I just realized that netbuf_ref() can't report an error if pbuf_alloc(... PBUF_REF) fails.
In other words, when I try to send some UDP-packet, but I'm out of memory in the memp-pbuf-pool, the data can't be sent but lwip_send() returns the same value as if the data would have been sent.

Is this the way it should be? Shouldn't there be some error-checking code + return value in netbuf_ref() ???

Thanks.

Simon.

_______________________________________________
lwip-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to