From: Zdenek S. <st...@us...> - 2013-05-22 10:17:01
|
Update of /cvsroot/ipmitool/ipmitool/lib In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv27438/lib Modified Files: ipmi_main.c Log Message: ID: 3613605 - 'lib/ipmi_main.c' - call free() on pointer to static data getpass() and getpassphrase() library functions return pointer to a static data array. When free() is called on such pointer, it abnormally terminates application. Commit for Dmitry Bazhenov Index: ipmi_main.c =================================================================== RCS file: /cvsroot/ipmitool/ipmitool/lib/ipmi_main.c,v retrieving revision 1.43 retrieving revision 1.44 diff -C2 -d -r1.43 -r1.44 *** ipmi_main.c 22 May 2013 10:05:06 -0000 1.43 --- ipmi_main.c 22 May 2013 10:16:59 -0000 1.44 *************** *** 505,509 **** } password = strdup(tmp_pass); - free(tmp_pass); tmp_pass = NULL; if (password == NULL) { --- 505,508 ---- *************** *** 561,565 **** } kgkey = strdup(tmp_pass); - free(tmp_pass); tmp_pass = NULL; if (kgkey == NULL) { --- 560,563 ---- *************** *** 795,799 **** if (tmp_pass != NULL) { password = strdup(tmp_pass); - free(tmp_pass); tmp_pass = NULL; if (password == NULL) { --- 793,796 ---- |