mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
ITS#4775: blind fix for buffer overflow condition in dead KrbIV code
(KrbIV code likely should be removed)
This commit is contained in:
parent
1de2d92d8a
commit
2761b06c58
@ -41,6 +41,10 @@ krbv4_ldap_auth(
|
|||||||
|
|
||||||
Debug( LDAP_DEBUG_TRACE, "=> kerberosv4_ldap_auth\n", 0, 0, 0 );
|
Debug( LDAP_DEBUG_TRACE, "=> kerberosv4_ldap_auth\n", 0, 0, 0 );
|
||||||
|
|
||||||
|
if( cred->len > sizeof(ktxt->dat) ) {
|
||||||
|
return LDAP_OTHER;
|
||||||
|
}
|
||||||
|
|
||||||
AC_MEMCPY( ktxt->dat, cred->bv_val, cred->bv_len );
|
AC_MEMCPY( ktxt->dat, cred->bv_val, cred->bv_len );
|
||||||
ktxt->length = cred->bv_len;
|
ktxt->length = cred->bv_len;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user