Fixed bug #26405: Prematurely released semaphore causes lwip_select() to crash

This commit is contained in:
goldsimon 2009-05-05 17:20:45 +00:00
parent fb46e0f192
commit 99d82c4980
2 changed files with 5 additions and 1 deletions

View File

@ -95,6 +95,10 @@ HISTORY
++ Bugfixes:
2009-05-05 Simon Goldschmidt
* sockets.c: bug #26405: Prematurely released semaphore causes lwip_select()
to crash
2009-05-04 Simon Goldschmidt
* init.c: snmp was not initialized in lwip_init()

View File

@ -1101,8 +1101,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;