Index: src/interfaces/libpq/fe-misc.c =================================================================== RCS file: /home/projects/pgsql/cvsroot/pgsql/src/interfaces/libpq/fe-misc.c,v retrieving revision 1.49 diff -c -r1.49 fe-misc.c *** src/interfaces/libpq/fe-misc.c 2001/05/28 15:29:51 1.49 --- src/interfaces/libpq/fe-misc.c 2001/06/04 17:52:40 *************** *** 614,619 **** --- 614,623 ---- int sent; + #ifdef WIN32 + errno = 0; /* Win32 doesn't set this, needs reset */ + #endif + #ifdef USE_SSL if (conn->ssl) sent = SSL_write(conn->ssl, ptr, len);