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:
Joel Cunningham 2017-10-23 09:05:57 -05:00
parent 22dacc38c0
commit b18e6a8734

View File

@ -2449,6 +2449,7 @@ event_callback(struct netconn *conn, enum netconn_evt evt, u16_t len)
case NETCONN_EVT_RCVMINUS: case NETCONN_EVT_RCVMINUS:
sock->rcvevent--; sock->rcvevent--;
check_waiters = 0; check_waiters = 0;
break;
case NETCONN_EVT_SENDPLUS: case NETCONN_EVT_SENDPLUS:
if (sock->sendevent) { if (sock->sendevent) {
check_waiters = 0; check_waiters = 0;
@ -2458,6 +2459,7 @@ event_callback(struct netconn *conn, enum netconn_evt evt, u16_t len)
case NETCONN_EVT_SENDMINUS: case NETCONN_EVT_SENDMINUS:
sock->sendevent = 0; sock->sendevent = 0;
check_waiters = 0; check_waiters = 0;
break;
case NETCONN_EVT_ERROR: case NETCONN_EVT_ERROR:
sock->errevent = 1; sock->errevent = 1;
break; break;