https://bugzilla.novell.com/show_bug.cgi?id=436712
User Felix.Buenemann@gmx.de added comment
https://bugzilla.novell.com/show_bug.cgi?id=436712#c3
--- Comment #3 from Felix Bünemann 2008-10-18 01:42:52 MDT ---
The buggy code fragment is in the patch to ibraries/libldap/result.c:
---snip---
@@ -474,10 +476,10 @@ nextresp3:
"ber_get_next failed.\n", 0, 0, 0 );
#endif
#ifdef EWOULDBLOCK
- if ( sock_errno() == EWOULDBLOCK ) return
LDAP_MSG_X_KEEP_LOOKING;
+ if ( err == EWOULDBLOCK ) return
LDAP_MSG_X_KEEP_LOOKING;
#endif
#ifdef EAGAIN
- if ( sock_errno() == EAGAIN ) return
LDAP_MSG_X_KEEP_LOOKING;
+ if ( err == EAGAIN ) return LDAP_MSG_X_KEEP_LOOKING;
#endif
ld->ld_errno = LDAP_SERVER_DOWN;
return -1;
---snip---
I think there is a missing line to initialize err above #ifdef EWOULDBLOCK:
err = sock_errno();
I have only read the patch and not the full source, so please check if that's
the right place to initialize err.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.