Skip to content

Commit

Permalink
SMSTCPIP: backported patch for bug #26405 (2009-05-05): Prematurely r…
Browse files Browse the repository at this point in the history
…eleased semaphore causes lwip_select() to crash.
  • Loading branch information
sp193 committed Feb 12, 2019
1 parent 0d780d6 commit b01706e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/network/SMSTCPIP/sockets.c
Original file line number Diff line number Diff line change
Expand Up @@ -862,8 +862,8 @@ event_callback(struct netconn *conn, enum netconn_evt evt, u16_t len)
}
if (scb) {
scb->sem_signalled = 1;
sys_sem_signal(selectsem);
sys_sem_signal(scb->sem);
sys_sem_signal(selectsem);
} else {
sys_sem_signal(selectsem);
break;
Expand Down

0 comments on commit b01706e

Please sign in to comment.