mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-07-01 02:03:50 +00:00
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:
@ -107,7 +107,7 @@ ipmi_password_file_read(char * filename)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
memset(pass, 21, 0);
|
||||
memset(pass, 0, 21);
|
||||
fp = ipmi_open_file_read((const char *)filename);
|
||||
if (fp == NULL) {
|
||||
lprintf(LOG_ERR, "Unable to open password file %s",
|
||||
|
Reference in New Issue
Block a user