mirror of
https://github.com/ep00ch/lwip-contrib-mac.git
synced 2024-08-28 18:29:08 +00:00
Mem corruption fix in cyg_arch_mbox_get from Claudio Leonel
This commit is contained in:
parent
48ec31d02c
commit
2a968d2b17
@ -29,6 +29,9 @@
|
|||||||
// -------------------------------------------
|
// -------------------------------------------
|
||||||
//####ECOSGPLCOPYRIGHTEND####
|
//####ECOSGPLCOPYRIGHTEND####
|
||||||
//==========================================================================
|
//==========================================================================
|
||||||
|
// Author: Jani Monoses
|
||||||
|
// Contributors: Claudio Leonel
|
||||||
|
//
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This file implements the eCos specific sys_arch functions used by lwIP
|
* This file implements the eCos specific sys_arch functions used by lwIP
|
||||||
@ -159,7 +162,10 @@ u32_t sys_arch_mbox_fetch(sys_mbox_t mbox, void **data, u32_t timeout)
|
|||||||
d = cyg_mbox_get(mbox);
|
d = cyg_mbox_get(mbox);
|
||||||
}
|
}
|
||||||
if (data)
|
if (data)
|
||||||
*data = d;
|
if (d == (void *)&dummy_msg)
|
||||||
|
*data = NULL;
|
||||||
|
else
|
||||||
|
*data = d;
|
||||||
return tick_to_msec(end_time - start_time);
|
return tick_to_msec(end_time - start_time);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user