Fix SSPI login when multiple roundtrips are required
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

jmcatamney/gpdb,ovr/postgres-xl,pavanvd/postgres-xl,ovr/postgres-xl,ashwinstar/gpdb,Postgres-XL/Postgres-XL,ashwinstar/gpdb,ovr/postgres-xl,yazun/postgres-xl,lisakowen/gpdb,xinzweb/gpdb,jmcatamney/gpdb,lisakowen/gpdb,50wu/gpdb,lisakowen/gpdb,xinzweb/gpdb,kmjungersen/PostgresXL,techdragon/Postgres-XL,kmjungersen/PostgresXL,postmind-net/postgres-xl,tpostgres-projects/tPostgres,oberstet/postgres-xl,jmcatamney/gpdb,tpostgres-projects/tPostgres,lisakowen/gpdb,adam8157/gpdb,oberstet/postgres-xl,jmcatamney/gpdb,50wu/gpdb,Postgres-XL/Postgres-XL,lisakowen/gpdb,50wu/gpdb,greenplum-db/gpdb,oberstet/postgres-xl,adam8157/gpdb,Postgres-XL/Postgres-XL,arcivanov/postgres-xl,greenplum-db/gpdb,arcivanov/postgres-xl,oberstet/postgres-xl,ashwinstar/gpdb,arcivanov/postgres-xl,jmcatamney/gpdb,yazun/postgres-xl,Postgres-XL/Postgres-XL,adam8157/gpdb,lisakowen/gpdb,greenplum-db/gpdb,50wu/gpdb,adam8157/gpdb,50wu/gpdb,50wu/gpdb,tpostgres-projects/tPostgres,arcivanov/postgres-xl,snaga/postgres-xl,pavanvd/postgres-xl,arcivanov/postgres-xl,techdragon/Postgres-XL,yazun/postgres-xl,50wu/gpdb,ashwinstar/gpdb,techdragon/Postgres-XL,adam8157/gpdb,postmind-net/postgres-xl,xinzweb/gpdb,postmind-net/postgres-xl,zeroae/postgres-xl,xinzweb/gpdb,snaga/postgres-xl,jmcatamney/gpdb,arcivanov/postgres-xl,ashwinstar/gpdb,ashwinstar/gpdb,pavanvd/postgres-xl,postmind-net/postgres-xl,techdragon/Postgres-XL,snaga/postgres-xl,techdragon/Postgres-XL,oberstet/postgres-xl,kmjungersen/PostgresXL,ashwinstar/gpdb,greenplum-db/gpdb,tpostgres-projects/tPostgres,lisakowen/gpdb,zeroae/postgres-xl,zeroae/postgres-xl,adam8157/gpdb,ovr/postgres-xl,postmind-net/postgres-xl,pavanvd/postgres-xl,pavanvd/postgres-xl,xinzweb/gpdb,zeroae/postgres-xl,jmcatamney/gpdb,yazun/postgres-xl,ovr/postgres-xl,adam8157/gpdb,xinzweb/gpdb,greenplum-db/gpdb,snaga/postgres-xl,greenplum-db/gpdb,yazun/postgres-xl,Postgres-XL/Postgres-XL,50wu/gpdb,kmjungersen/PostgresXL,ashwinstar/gpdb,greenplum-db/gpdb,adam8157/gpdb,xinzweb/gpdb,greenplum-db/gpdb,snaga/postgres-xl,xinzweb/gpdb,zeroae/postgres-xl,kmjungersen/PostgresXL,tpostgres-projects/tPostgres,lisakowen/gpdb,jmcatamney/gpdb