ITS#9175 - Fix argument cast

Fixes potential segfault in ldapsearch
This commit is contained in:
Quanah Gibson-Mount 2020-02-21 21:10:49 +00:00
parent a2a859fd0b
commit 6bd2a3721d

View file

@ -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;
}