Skip to content

Commit

Permalink
Close and free if doesnt support authentication
Browse files Browse the repository at this point in the history
  • Loading branch information
matricali committed Jul 25, 2024
1 parent 460988c commit 2cabbdb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/detection.c
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,9 @@ int detection_detect_ssh(btkg_context_t *context, const char *hostname,
log_warn(
"[!] %s:%d - %s The server doesn't accept password authentication method",
hostname, port, banner);
ssh_disconnect(session);
ssh_free(session);

return -1;
}

Expand Down

0 comments on commit 2cabbdb

Please sign in to comment.