mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-05-14 12:37:22 +00:00
Fix Identical code for different branches in ipmi_tsol_main() - CID#1261346
Commit adds error message and retval (-1) for an invalid tsol command/parameter.
This commit is contained in:
parent
fb69b5dc9e
commit
8ac8361aca
@ -412,8 +412,10 @@ ipmi_tsol_main(struct ipmi_intf *intf, int argc, char **argv)
|
|||||||
print_tsol_usage();
|
print_tsol_usage();
|
||||||
return 0;
|
return 0;
|
||||||
} else {
|
} else {
|
||||||
|
lprintf(LOG_ERR, "Invalid tsol command: '%s'\n",
|
||||||
|
argv[i]);
|
||||||
print_tsol_usage();
|
print_tsol_usage();
|
||||||
return 0;
|
return (-1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user