Skip to content

Commit 32be720

Browse files
committed
Revert kerberos code breakage.
1 parent 9ea764a commit 32be720

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/interfaces/libpq/fe-auth.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* exceed INITIAL_EXPBUFFER_SIZE (currently 256 bytes).
1111
*
1212
* IDENTIFICATION
13-
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-auth.c,v 1.77 2003/05/15 16:35:30 momjian Exp $
13+
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-auth.c,v 1.78 2003/05/16 04:58:03 tgl Exp $
1414
*
1515
*-------------------------------------------------------------------------
1616
*/
@@ -386,10 +386,10 @@ pg_krb5_sendauth(char *PQerrormsg, int sock,
386386
/*
387387
* libpq uses a non-blocking socket. But kerberos needs a blocking
388388
* socket, and we have to block somehow to do mutual authentication
389-
* anyway. So we temporarily make it blocking. Win32 doesn't support this.
389+
* anyway. So we temporarily make it blocking.
390390
*/
391391
flags = fcntl(sock, F_GETFL);
392-
if (flags < 0 || fcntl(sock, F_SETFL, flags & ~O_NONBLOCK)))
392+
if (flags < 0 || fcntl(sock, F_SETFL, (long) (flags & ~O_NONBLOCK)))
393393
{
394394
snprintf(PQerrormsg, PQERRORMSG_LENGTH,
395395
libpq_gettext("could not set socket to blocking mode: %s\n"), strerror(errno));

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy