From f8b92e8e28c2a1784497287a353befe3b4308946 Mon Sep 17 00:00:00 2001 From: Quanah Gibson-Mount Date: Fri, 21 Feb 2020 21:10:49 +0000 Subject: [PATCH] ITS#9175 - Fix argument cast Fixes potential segfault in ldapsearch --- libraries/libldap/getattr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/libldap/getattr.c b/libraries/libldap/getattr.c index 0e8f13d581..1e8ab1f808 100644 --- a/libraries/libldap/getattr.c +++ b/libraries/libldap/getattr.c @@ -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; } -- 2.47.2