]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#9175 - Fix argument cast
authorQuanah Gibson-Mount <quanah@openldap.org>
Fri, 21 Feb 2020 21:10:49 +0000 (21:10 +0000)
committerQuanah Gibson-Mount <quanah@openldap.org>
Fri, 21 Feb 2020 21:10:49 +0000 (21:10 +0000)
Fixes potential segfault in ldapsearch

libraries/libldap/getattr.c

index 31784d765f0e55d84b4381ecc95c4ab99d060fff..0300ea574249eacd797e67e8528ff479b2841aaa 100644 (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;
                }