From d495c16861b7cc4e748d6ce923962a1ca41f0dfb Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Tue, 20 Jan 2009 23:31:33 +0000 Subject: [PATCH] ITS#5897 fix bval length of serverID w/URL --- servers/slapd/bconfig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- 2.39.5