Commit 6bd2a372 authored by Quanah Gibson-Mount's avatar Quanah Gibson-Mount
Browse files

ITS#9175 - Fix argument cast

Fixes potential segfault in ldapsearch
parent a2a859fd
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment