SIGN IN SIGN UP

Issue #10350: Read and save errno before calling a function which might overwrite it.

Original patch by Hallvard B Furuseth.
A
Antoine Pitrou committed
ab0e9f7089c04df546af6cacbc8751247cf4020a