]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
auth: Fix deinitialization of multiple passdbs.
authorSergey Kitov <sergey.kitov@open-xchange.com>
Mon, 18 Mar 2019 13:27:43 +0000 (15:27 +0200)
committerVille Savolainen <ville.savolainen@dovecot.fi>
Mon, 1 Apr 2019 07:34:28 +0000 (10:34 +0300)
src/auth/db-oauth2.c

index fdfb147b80b5849840620c42e5a61eb7ee0954da..16d0bc35a7ebdcbf76a1c064dd7eea5a10c4033f 100644 (file)
@@ -274,7 +274,7 @@ void db_oauth2_unref(struct db_oauth2 **_db)
 
        if (--db->refcount > 0) return;
 
-       for(ptr = db_oauth2_head; ptr != NULL; ptr = db->next) {
+       for(ptr = db_oauth2_head; ptr != NULL; ptr = ptr->next) {
                if (ptr == db) {
                        DLLIST_REMOVE(&db_oauth2_head, ptr);
                        break;