goto error;
}
+ /*
+ * We cannot assign a count to an attribute. That must
+ * be done in an xlat.
+ */
+ if ((map->rhs->type == TMPL_TYPE_ATTR) &&
+ (map->rhs->tmpl_num == NUM_COUNT)) {
+ cf_log_err_cp(cp, "Cannot assign from a count");
+ goto error;
+ }
+
VERIFY_MAP(map);
*out = map;
--- /dev/null
+#
+# This should be an xlat, not a direct assignment
+#
+update request {
+ Tmp-Integer-0 := &Filter-Id[#] # ERROR
+}
\ No newline at end of file
--- /dev/null
+#
+# Updating lists isn't allowed
+#
+update {
+ &request:Filter-Id := &Filter-Id[#] # ERROR
+}