The fake message needs to be initialized to zero. Otherwise isim_log() will try to access the non-existent message data and cause a crash if the uninitialized message length value happens to be large.
Signed-off-by: Janne Huttunen <[email protected]> --- lanserv/lanserv_ipmi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lanserv/lanserv_ipmi.c b/lanserv/lanserv_ipmi.c index 219b2d8..b0a2431 100644 --- a/lanserv/lanserv_ipmi.c +++ b/lanserv/lanserv_ipmi.c @@ -3070,7 +3070,7 @@ ipmi_lan_tick(void *info, unsigned int time_since_last) for (i=1; i<=MAX_SESSIONS; i++) { if (lan->sessions[i].active) { if (lan->sessions[i].time_left <= time_since_last) { - msg_t msg; /* A fake message to hold the address. */ + msg_t msg = { 0 }; /* A fake message to hold the address. */ msg.src_addr = lan->sessions[i].src_addr; msg.src_len = lan->sessions[i].src_len; -- 2.5.0 ------------------------------------------------------------------------------ Site24x7 APM Insight: Get Deep Visibility into Application Performance APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month Monitor end-to-end web transactions and take corrective actions now Troubleshoot faster and improve end-user experience. Signup Now! http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140 _______________________________________________ Openipmi-developer mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openipmi-developer
