ID: 3522740 - reading password from file is limited to 16byte passwords

Commit fixes switched values(const<->size) passed to memset().
This commit is contained in:
Zdenek Styblik 2013-05-22 13:51:40 +00:00
parent 51dd9cf1f0
commit cc48c433fd

View File

@ -107,7 +107,7 @@ ipmi_password_file_read(char * filename)
return NULL; return NULL;
} }
memset(pass, 21, 0); memset(pass, 0, 21);
fp = ipmi_open_file_read((const char *)filename); fp = ipmi_open_file_read((const char *)filename);
if (fp == NULL) { if (fp == NULL) {
lprintf(LOG_ERR, "Unable to open password file %s", lprintf(LOG_ERR, "Unable to open password file %s",