]> git.sur5r.net Git - openldap/commitdiff
Check for NULL before comparing authcid
authorHoward Chu <hyc@openldap.org>
Sun, 12 May 2002 18:42:43 +0000 (18:42 +0000)
committerHoward Chu <hyc@openldap.org>
Sun, 12 May 2002 18:42:43 +0000 (18:42 +0000)
servers/slapd/sasl.c

index 5f9fa2c6f2cd0844994a0266f84d988a1f2fc2e2..36d8b48c5c563f259359242d4f3b3ca64bb59d7f 100644 (file)
@@ -541,7 +541,7 @@ slap_sasl_canonicalize(
                sasl_out_params_t dummy;
                int offset = (void *)&dummy.ulen - (void *)&dummy.authid;
                char **authid = (void *)out_len - offset;
-               if ( !strcmp( in, *authid ) )
+               if ( *authid && !strcmp( in, *authid ) )
                        goto done;
        }