Fix RADIUS error reporting in hba file parsing

From: Peter Eisentraut <peter(dot)eisentraut(at)enterprisedb(dot)com>
To: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Fix RADIUS error reporting in hba file parsing
Date: 2021-05-27 08:36:27
Message-ID: 8381e425-8c23-99b3-15ec-3115001db1b2@enterprisedb.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


The RADIUS-related checks in parse_hba_line() did not respect elevel
and did not fill in *err_msg. Also, verify_option_list_length()
pasted together error messages in an untranslatable way. To fix the
latter, remove the function and do the error checking inline. It's a
bit more verbose but only minimally longer, and it makes fixing the
first two issues straightforward.

Attachment Content-Type Size
0001-Fix-RADIUS-error-reporting-in-hba-file-parsing.patch text/plain 6.2 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Amit Langote 2021-05-27 08:46:00 Re: Skip partition tuple routing with constant partition key
Previous Message Masahiko Sawada 2021-05-27 08:15:41 Re: Skipping logical replication transactions on subscriber side