Skip to content

Commit

Permalink
lib-http: client: Fix using non-context SSL settings
Browse files Browse the repository at this point in the history
The SSL settings were used for the SSL context, but they weren't used for
individual SSL streams. This broke stream-only settings, like
allow_invalid_cert=TRUE.
  • Loading branch information
sirainen committed Feb 8, 2018
1 parent b66fc6e commit ca400a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib-http/http-client-connection.c
Expand Up @@ -1383,7 +1383,7 @@ http_client_connection_ssl_init(struct http_client_connection *conn,

i_assert(ssl_ctx != NULL);

i_zero(&ssl_set);
ssl_set = *set->ssl;
if (!set->ssl->allow_invalid_cert) {
ssl_set.verbose_invalid_cert = TRUE;
}
Expand Down

0 comments on commit ca400a4

Please sign in to comment.