Fix SSPI login when multiple roundtrips are required

Magnus Hagander <magnus@hagander.net>

Commit: 821c07244ace805445648188d07043a74ea6aad0
Author: Magnus Hagander <magnus@hagander.net>
Date: 2011-07-16T18:02:34Z
Releases: 8.3.16
Fix SSPI login when multiple roundtrips are required

This fixes SSPI login failures showing "The function
requested is not supported", often showing up when connecting
to localhost. The reason was not properly updating the SSPI
handle when multiple roundtrips were required to complete the
authentication sequence.

Report and analysis by Ahmed Shinwari, patch by Magnus Hagander

Files

PathChange+/−
src/backend/libpq/auth.c modified +8 −2