From: Kurt Zeilenga Date: Wed, 7 Aug 2002 19:17:22 +0000 (+0000) Subject: Fix saslregex init bug X-Git-Tag: NO_SLAP_OP_BLOCKS~1259 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e69c9067c2b6c968e05a89266ef833cbe04231e6;p=openldap Fix saslregex init bug --- 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 );