Skip to content

Commit

Permalink
Change: more useful logging for socket_negotiate_ssl (#1132)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kraemii committed Jul 21, 2022
1 parent 8f1dfff commit 149ccc2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions misc/network.c
Original file line number Diff line number Diff line change
Expand Up @@ -868,9 +868,12 @@ socket_negotiate_ssl (int fd, openvas_encaps_t transport,
if (!connection_failed_msg_sent)
{
g_message ("Function socket_negotiate_ssl called from %s: "
"SSL/TLS connection (host: %s) failed.",
"SSL/TLS connection (host: %s, ip: %s) failed.",
nasl_get_plugin_filename (),
hostname ? hostname : "unknown");
plug_get_host_fqdn (args) ? plug_get_host_fqdn (args)
: "unknown",
plug_get_host_ip_str (args) ? plug_get_host_ip_str (args)
: "unknown");
connection_failed_msg_sent = TRUE;
}
g_free (hostname);
Expand Down

0 comments on commit 149ccc2

Please sign in to comment.