mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-25 00:14:02 +00:00
sockets: fix missing break regression in event_callback
During the refactoring in c5db278746
, the
previous gotos were removed, but the lack of break statements in
NETCONN_EVNT_RCVMINUS and NETCONN_EVT_SENDMINUS was overlooked, leading
to incorrect fall through behavior
This commit is contained in:
parent
22dacc38c0
commit
b18e6a8734
@ -2449,6 +2449,7 @@ event_callback(struct netconn *conn, enum netconn_evt evt, u16_t len)
|
||||
case NETCONN_EVT_RCVMINUS:
|
||||
sock->rcvevent--;
|
||||
check_waiters = 0;
|
||||
break;
|
||||
case NETCONN_EVT_SENDPLUS:
|
||||
if (sock->sendevent) {
|
||||
check_waiters = 0;
|
||||
@ -2458,6 +2459,7 @@ event_callback(struct netconn *conn, enum netconn_evt evt, u16_t len)
|
||||
case NETCONN_EVT_SENDMINUS:
|
||||
sock->sendevent = 0;
|
||||
check_waiters = 0;
|
||||
break;
|
||||
case NETCONN_EVT_ERROR:
|
||||
sock->errevent = 1;
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user