ITS#4775: blind fix for buffer overflow condition in dead KrbIV code

(KrbIV code likely should be removed)
This commit is contained in:
Kurt Zeilenga 2006-12-12 14:18:54 +00:00
parent 1de2d92d8a
commit 2761b06c58

View File

@ -41,6 +41,10 @@ krbv4_ldap_auth(
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 );
ktxt->length = cred->bv_len;