From: SATOH Fumiyasu Date: Fri, 27 Jan 2012 17:13:40 +0000 (+0900) Subject: ITS#7138 smbk5pwd: fix ITS#6955 shadowLastChange X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=4069a34803c9c8c8e52baeeeee03e0b486129152;p=openldap ITS#7138 smbk5pwd: fix ITS#6955 shadowLastChange Fix uninitialized keys[1] in shadowLastChange support --- diff --git a/contrib/slapd-modules/smbk5pwd/smbk5pwd.c b/contrib/slapd-modules/smbk5pwd/smbk5pwd.c index fd38384a34..d4d7f6fe33 100644 --- a/contrib/slapd-modules/smbk5pwd/smbk5pwd.c +++ b/contrib/slapd-modules/smbk5pwd/smbk5pwd.c @@ -680,6 +680,7 @@ static int smbk5pwd_exop_passwd( qpw->rs_mods = ml; keys = ch_malloc( sizeof(struct berval) * 2); + BER_BVZERO( &keys[1] ); keys[0].bv_val = ch_malloc( LDAP_PVT_INTTYPE_CHARS(long) ); keys[0].bv_len = snprintf(keys[0].bv_val, LDAP_PVT_INTTYPE_CHARS(long),