Fixes after coverity analysis

This commit is contained in:
Olof hagsand 2023-12-30 16:04:06 +01:00
parent 7b58c1c562
commit 0fff9d8ef5
13 changed files with 43 additions and 24 deletions

View file

@ -1596,7 +1596,7 @@ cli_kill_session(clixon_handle h,
goto done;
}
if ((str = cv_string_get(cvec_i(argv, 0))) != NULL){
if ((ret = parse_uint32(str, &session_id, NULL)) < 0)
if ((ret = parse_uint32(str, &session_id, &reason)) < 0)
goto done;
if (ret == 0){
cligen_output(stderr, "%s\n", reason);