diff -Naurk.orig pam_ldap-125/pam_ldap.c.orig pam_ldap-125/pam_ldap.c --- pam_ldap-125/pam_ldap.c.orig Mon Sep 3 12:57:26 2001 +++ pam_ldap-125/pam_ldap.c Wed Apr 3 10:14:58 2002 @@ -820,13 +820,13 @@ passwdScope = LDAP_SCOPE_ONELEVEL; else if (!strcasecmp (s, "base")) passwdScope = LDAP_SCOPE_BASE; - } - s = strchr (s, '?'); - if (s != NULL) - { - *s = '\0'; - s++; - CHECKPOINTER (passwdFilter = strdup (s)); + s = strchr (s, '?'); + if (s != NULL) + { + *s = '\0'; + s++; + CHECKPOINTER (passwdFilter = strdup (s)); + } } } else if (!strcasecmp (k, "ldap_version"))