return correct error code from pgtls_init

From: Zhihong Yu <zyu(at)yugabyte(dot)com>
To: PostgreSQL Developers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: return correct error code from pgtls_init
Date: 2021-06-01 17:32:59
Message-ID: CALNJ-vRAtAZRFbpLdysaL-QL2qPeUJvp8=WLvp5df0XcUw9E8g@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,
It seems error code checking in pgtls_init() should follow the same
convention as PG codebase adopts - i.e. the non-zero error code should be
returned (instead of hard coded -1).

Please see the attached patch.

Thanks

Attachment Content-Type Size
tls-init-error-handling.patch application/octet-stream 1.3 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Dean Gibson (DB Administrator) 2021-06-01 17:44:54 Re: AWS forcing PG upgrade from v9.6 a disaster
Previous Message Pavel Stehule 2021-06-01 16:05:50 Re: security_definer_search_path GUC