From: Ben Collins Date: Wed, 13 Sep 2000 21:47:12 +0000 (+0000) Subject: Fix error in if() statement (==, not =) X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~2023 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5a33b7509b9b70a79c17a3a5c73c7ce5820c8306;p=openldap Fix error in if() statement (==, not =) --- diff --git a/libraries/libldap/os-ip.c b/libraries/libldap/os-ip.c index 01c6d62f56..371d8610dc 100644 --- a/libraries/libldap/os-ip.c +++ b/libraries/libldap/os-ip.c @@ -115,7 +115,7 @@ ldap_int_prepare_socket(LDAP *ld, int s, int proto ) osip_debug(ld, "ldap_prepare_socket: %d\n", s,0,0); #ifdef TCP_NODELAY - if( proto = LDAP_PROTO_TCP ) { + if( proto == LDAP_PROTO_TCP ) { int dummy = 1; if ( setsockopt( s, IPPROTO_TCP, TCP_NODELAY, (char*) &dummy, sizeof(dummy) ) == AC_SOCKET_ERROR )