]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
auth: Make auth_request_handler_unref(&NULL) no-op
authorAki Tuomi <aki.tuomi@open-xchange.com>
Tue, 19 Sep 2023 11:46:58 +0000 (14:46 +0300)
committertimo.sirainen <timo.sirainen@open-xchange.com>
Thu, 19 Oct 2023 18:00:45 +0000 (18:00 +0000)
src/auth/auth-request-handler.c

index 4f190cc35a968fbf13db5dba812cd2c9d3870cda..b5e89ad6e6ab169c855e962c4dc644aa0037ffc7 100644 (file)
@@ -103,6 +103,8 @@ void auth_request_handler_unref(struct auth_request_handler **_handler)
 {
         struct auth_request_handler *handler = *_handler;
 
+       if (handler == NULL)
+               return;
        *_handler = NULL;
 
        i_assert(handler->refcount > 0);