mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-05-10 10:37:22 +00:00
3600960 check the copy of password exists
This commit is contained in:
parent
28f93df807
commit
6a82e95988
@ -723,7 +723,11 @@ ipmi_user_main(struct ipmi_intf * intf, int argc, char ** argv)
|
||||
else
|
||||
password = argv[3];
|
||||
|
||||
if (strlen(password) > 20)
|
||||
if (password == NULL) {
|
||||
lprintf(LOG_ERR, "Unable to parse password argument.");
|
||||
return -1;
|
||||
}
|
||||
else if (strlen(password) > 20)
|
||||
{
|
||||
lprintf(LOG_ERR, "Password is too long (> 20 bytes)");
|
||||
return -1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user