From 5a33b7509b9b70a79c17a3a5c73c7ce5820c8306 Mon Sep 17 00:00:00 2001 From: Ben Collins Date: Wed, 13 Sep 2000 21:47:12 +0000 Subject: [PATCH] Fix error in if() statement (==, not =) --- libraries/libldap/os-ip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ) -- 2.39.5