From e69c9067c2b6c968e05a89266ef833cbe04231e6 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Wed, 7 Aug 2002 19:17:22 +0000 Subject: [PATCH] Fix saslregex init bug --- servers/slapd/saslauthz.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/servers/slapd/saslauthz.c b/servers/slapd/saslauthz.c index d6511b8256..82e68378b9 100644 --- a/servers/slapd/saslauthz.c +++ b/servers/slapd/saslauthz.c @@ -199,6 +199,8 @@ int slap_sasl_regexp_config( const char *match, const char *replace ) SaslRegexp = (SaslRegexp_t *) ch_realloc( (char *) SaslRegexp, (nSaslRegexp + 1) * sizeof(SaslRegexp_t) ); + reg = &SaslRegexp[nSaslRegexp]; + reg->sr_match = ch_strdup( match ); reg->sr_replace = ch_strdup( replace ); -- 2.39.5