Clean up some SCRAM attribute processing
authorPeter Eisentraut <peter@eisentraut.org>
Tue, 20 Aug 2019 20:25:58 +0000 (22:25 +0200)
committerPeter Eisentraut <peter@eisentraut.org>
Tue, 20 Aug 2019 20:33:06 +0000 (22:33 +0200)
commitdb1f28917bac5e008dcb2653a54e73d2d0571e06
tree03dd86197195b9811403e1d51192188925796595
parentf8cf524da15ec4d8fad26aeff44af9928d30eb3d
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
src/backend/libpq/auth-scram.c