ssl/ssl_asn1.c: Fix typo introduced via cc5b6a03a320f1
authormancha security <mancha1@zoho.com>
Sun, 3 May 2015 02:45:45 +0000 (02:45 +0000)
committerMatt Caswell <matt@openssl.org>
Tue, 5 May 2015 08:06:15 +0000 (09:06 +0100)
Signed-off-by: mancha security <mancha1@zoho.com>
Signed-off-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Dr. Stephen Henson <steve@openssl.org>
ssl/ssl_asn1.c

index 905c8cf..3e84917 100644 (file)
@@ -370,7 +370,7 @@ SSL_SESSION *d2i_SSL_SESSION(SSL_SESSION **a, const unsigned char **pp,
 
 #ifndef OPENSSL_NO_KRB5
     if (!ssl_session_memcpy(ret->krb5_client_princ, &ret->krb5_client_princ_len,
-                            as->krb5_princ, SSL_MAX_PRINCIPAL_LENGTH))
+                            as->krb5_princ, SSL_MAX_KRB5_PRINCIPAL_LENGTH))
         goto err;
 #endif                          /* OPENSSL_NO_KRB5 */