DoArbChange: actually initialize value
[mirror/userdir-ldap.git] / ud-mailgate
index d4e3f1d..02693b6 100755 (executable)
@@ -195,6 +195,8 @@ def DoArbChange(Str, Attrs):
     if re.match(ArbChanges[attrName], G[1]) is None:
         raise UDFormatError("Item does not match the required format" + ArbChanges[attrName])
 
     if re.match(ArbChanges[attrName], G[1]) is None:
         raise UDFormatError("Item does not match the required format" + ArbChanges[attrName])
 
+    value = G[1];
+
     Attrs.append((ldap.MOD_REPLACE, attrName, value))
     return "Changed entry %s to %s" % (attrName, value)
 
     Attrs.append((ldap.MOD_REPLACE, attrName, value))
     return "Changed entry %s to %s" % (attrName, value)