From: Zdenek S. <st...@us...> - 2013-12-08 19:06:16
|
Update of /cvsroot/ipmitool/ipmitool/src/plugins/lanplus In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv20757/src/plugins/lanplus Modified Files: lanplus.c Log Message: ID: 285 - Fix SEGV in ipmi_lanplus_open_session If ipmi_lanplus_send_payload fails we get a NULL pointer returned. Error out straight away instead of continuing on and getting a SEGV when we dereference rsp. Commit for Anton Blanchard Index: lanplus.c =================================================================== RCS file: /cvsroot/ipmitool/ipmitool/src/plugins/lanplus/lanplus.c,v retrieving revision 1.79 retrieving revision 1.80 diff -C2 -d -r1.79 -r1.80 *** lanplus.c 14 Nov 2013 12:56:49 -0000 1.79 --- lanplus.c 8 Dec 2013 19:06:13 -0000 1.80 *************** *** 2859,2863 **** free(msg); msg = NULL; ! if (verbose) lanplus_dump_open_session_response(rsp); --- 2859,2866 ---- free(msg); msg = NULL; ! if (!rsp) { ! lprintf(LOG_WARNING, "Error sending open session message."); ! return -1; ! } if (verbose) lanplus_dump_open_session_response(rsp); |