]> git.sur5r.net Git - openldap/commitdiff
Make sure the variable used for SASL REALM is initialized, in case of no REALM.
authorMark Adamson <adamson@openldap.org>
Tue, 23 Jan 2001 19:18:03 +0000 (19:18 +0000)
committerMark Adamson <adamson@openldap.org>
Tue, 23 Jan 2001 19:18:03 +0000 (19:18 +0000)
servers/slapd/sasl.c

index 71abec70ad939862d2d47724ee8a927cb83598c2..f447a75c22c90b82d42fd7c01843b6b465f17476 100644 (file)
@@ -82,7 +82,7 @@ slap_sasl_log(
 
 int slap_sasl_getdn( Connection *conn, char *id, char **dnptr, int flags )
 {
-       char *c, *c1, *dn=NULL;
+       char *c=NULL, *c1, *dn=NULL;
        int rc, len;
        sasl_conn_t *ctx;