From 4069a34803c9c8c8e52baeeeee03e0b486129152 Mon Sep 17 00:00:00 2001 From: SATOH Fumiyasu Date: Sat, 28 Jan 2012 02:13:40 +0900 Subject: [PATCH] ITS#7138 smbk5pwd: fix ITS#6955 shadowLastChange Fix uninitialized keys[1] in shadowLastChange support --- contrib/slapd-modules/smbk5pwd/smbk5pwd.c | 1 + 1 file changed, 1 insertion(+) 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), -- 2.39.5