]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix #158: open tls-session-ticket-keys as binary, for Windows. By Daisuke
authorRalph Dolmans <ralph@nlnetlabs.nl>
Thu, 19 Mar 2020 13:00:33 +0000 (14:00 +0100)
committerRalph Dolmans <ralph@nlnetlabs.nl>
Thu, 19 Mar 2020 13:00:33 +0000 (14:00 +0100)
  HIGASHI.

doc/Changelog
util/net_help.c

index 1183db3f493bcac59a76a112691531bdc3a9a73e..2466f16f5d2fd19b408923c3a918c204357efa07 100644 (file)
@@ -1,5 +1,7 @@
 19 March 2020: Ralph
        - Merge PR#191: Update iOS testing on Travis, by Jeffrey Walton.
+       - Fix #158: open tls-session-ticket-keys as binary, for Windows. By
+         Daisuke HIGASHI.
 
 16 March 2020: Wouter
        - Fix #192: In the unbound-checkconf tool, the module config of
index 8f75da07f10258c1c30676a19567a4054f8424a3..135d33427ee1752b0a917824a8f945233ba398f9 100644 (file)
@@ -1362,7 +1362,7 @@ int listen_sslctx_setup_ticket_keys(void* sslctx, struct config_strlist* tls_ses
                if(!data)
                        return 0;
 
-               f = fopen(p->str, "r");
+               f = fopen(p->str, "rb");
                if(!f) {
                        log_err("could not read tls-session-ticket-key %s: %s", p->str, strerror(errno));
                        free(data);