]> git.sur5r.net Git - openldap/commitdiff
ITS#3359: Crash on recursive rebind following referral
authorKurt Zeilenga <kurt@openldap.org>
Sat, 9 Oct 2004 03:20:05 +0000 (03:20 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Sat, 9 Oct 2004 03:20:05 +0000 (03:20 +0000)
libraries/libldap/result.c

index 03356c5cef0ce9ae3ed05faa2f497967e1202c96..707f51f967f536956886444c5c6c7ab4218a6380 100644 (file)
@@ -349,7 +349,7 @@ wait4msg(
                            {
                                    ld->ld_errno = (rc == -1 ? LDAP_SERVER_DOWN :
                                        LDAP_TIMEOUT);
-                                   return( rc );
+                                   return -1;
                            }
 
                            if ( rc == -1 ) {