Fix typo in ud-mailgate.
[mirror/userdir-ldap.git] / ud-mailgate
index 49b26ae..5ec68d2 100755 (executable)
@@ -553,7 +553,7 @@ def connect_to_ldap_and_check_if_locked(DnRecord):
     if (GetAttr(Attrs[0], "userPassword").find("*LK*") != -1) \
        or GetAttr(Attrs[0], "userPassword").startswith("!"):
         raise UDNotAllowedError("This account is locked")
     if (GetAttr(Attrs[0], "userPassword").find("*LK*") != -1) \
        or GetAttr(Attrs[0], "userPassword").startswith("!"):
         raise UDNotAllowedError("This account is locked")
-    return l
+    return lc
 
 
 # Handle an [almost] arbitary change
 
 
 # Handle an [almost] arbitary change