1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-06-15 23:35:34 +00:00

Add to blacklist only valid uri

This commit is contained in:
Witold Filipczyk 2017-07-23 19:15:10 +02:00
parent a6799737f5
commit affcebbab1

View File

@ -275,7 +275,9 @@ retry_connection_without_verification(void *data)
struct delayed_open *deo = (struct delayed_open *)data;
if (deo) {
add_blacklist_entry(deo->uri, SERVER_BLACKLIST_NO_CERT_VERIFY);
if (deo->uri->hostlen) {
add_blacklist_entry(deo->uri, SERVER_BLACKLIST_NO_CERT_VERIFY);
}
goto_uri(deo->ses, deo->uri);
done_uri(deo->uri);
mem_free(deo);