mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-05-10 10:37:22 +00:00
ID: 101 - 'lib/ipmi_sol.c' - possible int *flow
Don't make ref out of ref -> segfault.
This commit is contained in:
parent
2a260d32e9
commit
fb5d8559e6
@ -659,7 +659,7 @@ int ipmi_sol_set_param_isvalid_uint8_t( const char *strval,
|
|||||||
uint8_t maxval,
|
uint8_t maxval,
|
||||||
uint8_t *out_value)
|
uint8_t *out_value)
|
||||||
{
|
{
|
||||||
if (str2uint(strval, &out_value) != 0 || (*out_value < minval)
|
if (str2uint(strval, out_value) != 0 || (*out_value < minval)
|
||||||
|| (*out_value > maxval)) {
|
|| (*out_value > maxval)) {
|
||||||
lprintf(LOG_ERR, "Invalid value %s for parameter %s",
|
lprintf(LOG_ERR, "Invalid value %s for parameter %s",
|
||||||
strval, name);
|
strval, name);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user