From: Josef 'Jeff' Sipek Date: Mon, 29 Jan 2018 13:40:27 +0000 (-0500) Subject: lib-storage: mailbox_header_lookup_unref(NULL) should be a no-op X-Git-Tag: 2.3.1~82 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4db31f1f405977ef53fdd61ea980fff2cb551938;p=thirdparty%2Fdovecot%2Fcore.git lib-storage: mailbox_header_lookup_unref(NULL) should be a no-op --- diff --git a/src/lib-storage/mailbox-header.c b/src/lib-storage/mailbox-header.c index 2def864985..434e4191af 100644 --- a/src/lib-storage/mailbox-header.c +++ b/src/lib-storage/mailbox-header.c @@ -79,6 +79,9 @@ void mailbox_header_lookup_unref(struct mailbox_header_lookup_ctx **_ctx) { struct mailbox_header_lookup_ctx *ctx = *_ctx; + if (ctx == NULL) + return; + *_ctx = NULL; i_assert(ctx->refcount > 0);