Fixes after coverity analysis
This commit is contained in:
parent
7b58c1c562
commit
0fff9d8ef5
13 changed files with 43 additions and 24 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue