summaryrefslogtreecommitdiffstats
path: root/src/evaluate.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/evaluate.c')
-rw-r--r--src/evaluate.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/evaluate.c b/src/evaluate.c
index 639bc012..a5c95426 100644
--- a/src/evaluate.c
+++ b/src/evaluate.c
@@ -1784,6 +1784,10 @@ static int expr_evaluate_map(struct eval_ctx *ctx, struct expr **expr)
ctx->ectx.len, NULL);
}
+ if (!ectx.dtype)
+ return expr_error(ctx->msgs, map,
+ "Implicit map expression without known datatype");
+
if (ectx.dtype->type == TYPE_VERDICT) {
data = verdict_expr_alloc(&netlink_location, 0, NULL);
} else {