mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-04 06:01:23 -05:00
ITS#9175 - Fix argument cast
Fixes potential segfault in ldapsearch
This commit is contained in:
parent
a2a859fd0b
commit
6bd2a3721d
1 changed files with 1 additions and 1 deletions
|
|
@ -147,7 +147,7 @@ ldap_get_attribute_ber( LDAP *ld, LDAPMessage *entry, BerElement *ber,
|
|||
|
||||
/* skip sequence, snarf attribute type */
|
||||
tag = ber_scanf( ber, vals ? "{mM}" : "{mx}", attr, vals,
|
||||
&siz, 0 );
|
||||
&siz, (ber_len_t)0 );
|
||||
if( tag == LBER_ERROR ) {
|
||||
rc = ld->ld_errno = LDAP_DECODING_ERROR;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue