mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-05-10 18:47:22 +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:
parent
51dd9cf1f0
commit
cc48c433fd
@ -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",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user