]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-ssl-iostream: Ensure verify_remote_cert is true
authorAki Tuomi <aki.tuomi@dovecot.fi>
Thu, 2 Mar 2017 07:15:13 +0000 (09:15 +0200)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Thu, 16 Mar 2017 17:51:53 +0000 (19:51 +0200)
Forgotten in 38424b8081a75be3ef93729fed4d30dbafca5885

src/lib-ssl-iostream/iostream-ssl.c

index 9e03a98e5fb97999691affbd2f8db71091adf03b..ea84c8718e6e24617980edc56211108cabec6505 100644 (file)
@@ -110,7 +110,9 @@ int io_stream_create_ssl_client(struct ssl_iostream_context *ctx, const char *ho
                                struct ssl_iostream **iostream_r,
                                const char **error_r)
 {
-       return ssl_vfuncs->create(ctx, host, set, input, output,
+       struct ssl_iostream_settings set_copy = *set;
+       set_copy.verify_remote_cert = TRUE;
+       return ssl_vfuncs->create(ctx, host, &set_copy, input, output,
                                  iostream_r, error_r);
 }