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 905c8cf600c4e77f16943a4691ea9d16c602f29d..3e849175eaf4dece218890bdae1bef189da2f9dc 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 */