From 955ba101dcd0aac6d739c7f99293af35b0444f4b Mon Sep 17 00:00:00 2001 From: Josef 'Jeff' Sipek Date: Mon, 22 Feb 2021 17:41:23 -0500 Subject: [PATCH] lib-dict: Make dict_transaction_rollback(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 64bebe39c3..b51aaa8a80 100644 --- a/src/lib-dict/dict.c +++ b/src/lib-dict/dict.c @@ -585,6 +585,10 @@ void dict_transaction_commit_async(struct dict_transaction_context **_ctx, void dict_transaction_rollback(struct dict_transaction_context **_ctx) { struct dict_transaction_context *ctx = *_ctx; + + if (ctx == NULL) + return; + struct event *event = ctx->event; *_ctx = NULL; -- 2.47.3