fixed bug #41499 netconn::recv_avail can overflow

This commit is contained in:
Simon Goldschmidt
2014-02-20 21:55:11 +01:00
parent 08b56e8180
commit a2d6a50dff
3 changed files with 6 additions and 3 deletions

View File

@@ -203,7 +203,7 @@ struct netconn {
/** number of bytes currently in recvmbox to be received,
tested against recv_bufsize to limit bytes on recvmbox
for UDP and RAW, used for FIONREAD */
s16_t recv_avail;
int recv_avail;
#endif /* LWIP_SO_RCVBUF */
/** flags holding more netconn-internal state, see NETCONN_FLAG_* defines */
u8_t flags;