Skip to content

Commit

Permalink
Fix: set transport again if falls back in a unecrypted connection (#1190
Browse files Browse the repository at this point in the history
)

In case of falling back in a unencrypted connection, set the transport to OPENVAS_ENCAPS_IP again.
  • Loading branch information
jjnicola committed Sep 8, 2022
1 parent 2ab611c commit c4f5a8c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nasl/nasl_builtin_find_service.c
Original file line number Diff line number Diff line change
Expand Up @@ -1542,7 +1542,8 @@ retry_stream_connection (int test_ssl, struct script_infos *desc, int port,
g_debug ("%s: unable to establish a TLS connection to %s; falling "
"back to unencrypted connection",
__func__, plug_get_host_fqdn (desc));
cnx = open_stream_connection (desc, port, OPENVAS_ENCAPS_IP, timeout);
*trp = OPENVAS_ENCAPS_IP;
cnx = open_stream_connection (desc, port, *trp, timeout);
}
}

Expand Down

0 comments on commit c4f5a8c

Please sign in to comment.