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

ITS#9175 - Fix argument cast

Fixes potential segfault in ldapsearch
parent ef537fdf
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
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