mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
NUL-terminate undefined objectClass soc_cname (ITS#5682)
This commit is contained in:
parent
969a0aef0e
commit
374d8f85ae
@ -227,6 +227,7 @@ oc_bvfind_undef( struct berval *ocname )
|
||||
oc->soc_cname.bv_len = ocname->bv_len;
|
||||
oc->soc_cname.bv_val = (char *)&oc[ 1 ];
|
||||
AC_MEMCPY( oc->soc_cname.bv_val, ocname->bv_val, ocname->bv_len );
|
||||
oc->soc_cname.bv_val[ oc->soc_cname.bv_len ] = '\0';
|
||||
|
||||
/* canonical to upper case */
|
||||
ldap_pvt_str2upper( oc->soc_cname.bv_val );
|
||||
|
Loading…
Reference in New Issue
Block a user