]> git.sur5r.net Git - openldap/commitdiff
Avoid unnecessary C99 initializers
authorHoward Chu <hyc@openldap.org>
Thu, 25 Jan 2018 15:40:26 +0000 (15:40 +0000)
committerHoward Chu <hyc@openldap.org>
Thu, 25 Jan 2018 15:40:26 +0000 (15:40 +0000)
libraries/libldap/tls_o.c

index 8cd98b4ac9cf2f92d379c1f2635b4bed773f8629..d212b6a69253c28ca37f034c0f91cf42f95e5bcd 100644 (file)
@@ -885,7 +885,7 @@ tlso_session_pinning( LDAP *ld, tls_session *sess, char *hashalg, struct berval
        tlso_session *s = (tlso_session *)sess;
        unsigned char *tmp, digest[EVP_MAX_MD_SIZE];
        struct berval key,
-                                 keyhash = { .bv_val = digest, .bv_len = sizeof(digest) };
+                                 keyhash = { sizeof(digest), digest };
        X509 *cert = SSL_get_peer_certificate(s);
        int len, rc = LDAP_SUCCESS;