Skip to content
Snippets Groups Projects
Commit 922d856d authored by Quanah Gibson-Mount's avatar Quanah Gibson-Mount
Browse files

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

parent 0b1db3ae
No related branches found
No related tags found
No related merge requests found
...@@ -41,6 +41,10 @@ krbv4_ldap_auth( ...@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment