mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-05-10 18:47:22 +00:00
ID: 3528347 - 'lib/ipmi_raw.c' - possible int *flow
Commit fixes missing return in function is_valid_param() which slipped in code review.
This commit is contained in:
parent
3018b229b1
commit
cce3f84896
@ -422,6 +422,7 @@ int
|
|||||||
is_valid_param(const char *input_param, uint8_t *uchr_ptr, const char *label) {
|
is_valid_param(const char *input_param, uint8_t *uchr_ptr, const char *label) {
|
||||||
if (input_param == NULL || label == NULL) {
|
if (input_param == NULL || label == NULL) {
|
||||||
lprintf(LOG_ERROR, "ERROR: NULL pointer passed.");
|
lprintf(LOG_ERROR, "ERROR: NULL pointer passed.");
|
||||||
|
return (-1);
|
||||||
}
|
}
|
||||||
if (str2uchar(input_param, uchr_ptr) == 0)
|
if (str2uchar(input_param, uchr_ptr) == 0)
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user