Skip to content

Commit

Permalink
res, result fix
Browse files Browse the repository at this point in the history
  • Loading branch information
openshwprojects committed Dec 17, 2022
1 parent 681c29e commit 2abb89a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/httpserver/http_fns.c
Original file line number Diff line number Diff line change
Expand Up @@ -1360,12 +1360,12 @@ int http_fn_cmd_tool(http_request_t* request) {
long_str_alloced = (char*)malloc(commandLen);
if (long_str_alloced) {
http_getArg(request->url, "cmd", long_str_alloced, commandLen);
CMD_ExecuteCommand(long_str_alloced, COMMAND_FLAG_SOURCE_CONSOLE);
res = CMD_ExecuteCommand(long_str_alloced, COMMAND_FLAG_SOURCE_CONSOLE);
free(long_str_alloced);
}
}
else {
CMD_ExecuteCommand(tmpA, COMMAND_FLAG_SOURCE_CONSOLE);
res = CMD_ExecuteCommand(tmpA, COMMAND_FLAG_SOURCE_CONSOLE);
}
LOG_SetCommandHTTPRedirectReply(0);
resStr = CMD_GetResultString(res);
Expand Down

0 comments on commit 2abb89a

Please sign in to comment.