From d7446176efceb9b7c7b2c3d54814479ef9af4cd8 Mon Sep 17 00:00:00 2001 From: Josef 'Jeff' Sipek Date: Mon, 22 Feb 2021 17:43:49 -0500 Subject: [PATCH] lib-dict: Make dict_iterate_deinit(NULL) a no-op --- src/lib-dict/dict.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib-dict/dict.c b/src/lib-dict/dict.c index b51aaa8a80..d43e2e5072 100644 --- a/src/lib-dict/dict.c +++ b/src/lib-dict/dict.c @@ -438,6 +438,10 @@ int dict_iterate_deinit(struct dict_iterate_context **_ctx, const char **error_r) { struct dict_iterate_context *ctx = *_ctx; + + if (ctx == NULL) + return 0; + struct event *event = ctx->event; int ret; uint64_t rows; -- 2.47.3