Skip to content
Snippets Groups Projects
Commit 2761b06c authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

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

(KrbIV code likely should be removed)
parent 1de2d92d
Branches
Tags
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment