Skip to content

Commit

Permalink
Free SSL structure on failed connection attempts.
Browse files Browse the repository at this point in the history
  • Loading branch information
dougnazar committed Aug 1, 2024
1 parent dc8eb69 commit 9221a7a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/nrpe.c
Original file line number Diff line number Diff line change
Expand Up @@ -1771,8 +1771,11 @@ void handle_connection(int sock)
return;
}

if (handle_conn_ssl(sock, ssl) != OK)
if (handle_conn_ssl(sock, ssl) != OK) {
complete_SSL_shutdown(ssl);
SSL_free(ssl);
return;
}
}
#endif

Expand Down

0 comments on commit 9221a7a

Please sign in to comment.