]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-sql: pgsql - Use FATAL_OUTOFMEM with out of memory
authorAki Tuomi <aki.tuomi@open-xchange.com>
Thu, 29 Jun 2023 10:37:28 +0000 (13:37 +0300)
committerAki Tuomi <aki.tuomi@open-xchange.com>
Wed, 5 Jul 2023 07:21:08 +0000 (10:21 +0300)
src/lib-sql/driver-pgsql.c

index 02ebf715725f6f0cf54eaef7e259c0069ff25fde..4fb38eeb6f04775051a721aff595836000a1dcdb 100644 (file)
@@ -245,7 +245,7 @@ static int driver_pgsql_connect(struct sql_db *_db)
 
        db->pg = PQconnectStart(db->connect_string);
        if (db->pg == NULL) {
-               i_fatal("pgsql: PQconnectStart() failed (out of memory)");
+               i_fatal_status(FATAL_OUTOFMEM, "pgsql: PQconnectStart() failed (out of memory)");
        }
 
        (void)PQsetNoticeProcessor(db->pg, pgsql_notice_processor, db);