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

(ITS#3524) libldap multiple select() without reinitializing FD_SETs



Full_Name: Ralf Haferkamp
Version: 2.2.23
OS: Linux (Kernel 2.6)
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (212.95.100.148)


According to the select(2) man page the FD_SETs and timeout struct becomes
undefined after select returned with an error. In libldap (e.g. in wait4msg()
and ldap_pvt_connect()) it seems possible that select is called more than once
without reinitializing the FD_SETs and the timeout struct. (Only if
LDAP_OPT_RESTART is set).