mirror of
https://github.com/ep00ch/lwip-contrib-mac.git
synced 2025-02-22 23:28:57 +00:00
Kieran Mansley - kjm25@cam.ac.uk - 29th July 2004
* Fixed DEBUG statement that could attempt to dereference a NULL pointer in sys_arch_mbox_fetch()
This commit is contained in:
parent
c2c5ae818a
commit
ce67f2094f
@ -275,11 +275,13 @@ sys_arch_mbox_fetch(struct sys_mbox *mbox, void **msg, u32_t timeout)
|
||||
sys_arch_sem_wait(mbox->mutex, 0);
|
||||
}
|
||||
|
||||
LWIP_DEBUGF(SYS_DEBUG, ("sys_mbox_fetch: mbox %p msg %p\n", (void *)mbox, *msg));
|
||||
|
||||
if (msg != NULL) {
|
||||
LWIP_DEBUGF(SYS_DEBUG, ("sys_mbox_fetch: mbox %p msg %p\n", (void *)mbox, *msg));
|
||||
*msg = mbox->msgs[mbox->first % SYS_MBOX_SIZE];
|
||||
}
|
||||
else{
|
||||
LWIP_DEBUGF(SYS_DEBUG, ("sys_mbox_fetch: mbox %p, null msg\n", (void *)mbox));
|
||||
}
|
||||
|
||||
mbox->first++;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user