Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions apps/wolfssh/wolfssh.c
Original file line number Diff line number Diff line change
Expand Up @@ -857,6 +857,10 @@ static int config_parse_command_line(struct config* config,
}

command = (char*)WMALLOC(commandSz, NULL, 0);
if (command == NULL) {
fprintf(stderr, "Couldn't allocate command buffer.\n");
exit(EXIT_FAILURE);
}
config->command = command;
cursor = command;

Expand Down
2 changes: 1 addition & 1 deletion src/agent.c
Original file line number Diff line number Diff line change
Expand Up @@ -1680,7 +1680,7 @@ int wolfSSH_AGENT_worker(WOLFSSH* ssh)
WLOG_ENTER();

if (ssh == NULL)
ret = WS_SSH_NULL_E;
return WS_SSH_NULL_E;
Comment on lines 1682 to +1683

while (1) {
if (ret == WS_SUCCESS) {
Expand Down
Loading