From: Howard Chu Date: Tue, 20 Jan 2009 23:31:33 +0000 (+0000) Subject: ITS#5897 fix bval length of serverID w/URL X-Git-Tag: ACLCHECK_0~981 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d495c16861b7cc4e748d6ce923962a1ca41f0dfb;p=openldap ITS#5897 fix bval length of serverID w/URL --- diff --git a/servers/slapd/bconfig.c b/servers/slapd/bconfig.c index c59d9556b8..8018848f75 100644 --- a/servers/slapd/bconfig.c +++ b/servers/slapd/bconfig.c @@ -1028,7 +1028,7 @@ config_generic(ConfigArgs *c) { if ( !BER_BVISEMPTY( &si->si_url )) { bv.bv_len = si->si_url.bv_len + 6; bv.bv_val = ch_malloc( bv.bv_len ); - sprintf( bv.bv_val, "%d %s", si->si_num, + bv.bv_len = sprintf( bv.bv_val, "%d %s", si->si_num, si->si_url.bv_val ); ber_bvarray_add( &c->rvalue_vals, &bv ); } else {