Clean up some SCRAM attribute processing

Peter Eisentraut <peter@eisentraut.org>

Commit: db1f28917bac5e008dcb2653a54e73d2d0571e06
Author: Peter Eisentraut <peter@eisentraut.org>
Date: 2019-08-20T20:33:06Z
Releases: 13.0
Clean up some SCRAM attribute processing

Correct the comment for read_any_attr().  Give a clearer error message
when parsing at the end of the string, when the client-final-message
does not contain a "p" attribute (for some reason).

Reviewed-by: Michael Paquier <michael@paquier.xyz>
Discussion: https://www.postgresql.org/message-id/flat/2fb8a15b-de35-682d-a77b-edcc9c52fa12%402ndquadrant.com

Files

PathChange+/−
src/backend/libpq/auth-scram.c modified +9 −2

Discussion