From 6bd2a3721d05406744baa57ea82ca9b962506c61 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 31784d765f..0300ea5742 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; }