]> git.sur5r.net Git - openldap/commitdiff
Fix error in if() statement (==, not =)
authorBen Collins <bcollins@openldap.org>
Wed, 13 Sep 2000 21:47:12 +0000 (21:47 +0000)
committerBen Collins <bcollins@openldap.org>
Wed, 13 Sep 2000 21:47:12 +0000 (21:47 +0000)
libraries/libldap/os-ip.c

index 01c6d62f5615b98687c25baa6467f3aca477f7fd..371d8610dc53c072ed2a1cba606a672af9704abf 100644 (file)
@@ -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 )