[Date Prev][Date Next] [Chronological] [Thread] [Top]

slapd: errno and Debug() function



In send_search_entry() errno is tested to determine what
error occured in ber_flush(). However two other functions
are called before errno is tested those being Debug()
and ldap_pvt_thread_mutex_unlock(). I did look into the
thread function but Debug definitely has the potential
of changing the value of errno before the test.

This will get more complicated for a Windows NT port
because WSAGetLastError() needs to be called to test
for EWOULDBLOCK instead of testing for errno.

Same issue in send_ldap_result2().

Perhaps Debug() should store and reset the errno value.
-- 
-
J. R. Heisey