]> git.sur5r.net Git - openldap/commitdiff
ITS#6870 fix winsock wake_sds init
authorHoward Chu <hyc@openldap.org>
Thu, 24 Mar 2011 10:38:09 +0000 (10:38 +0000)
committerHoward Chu <hyc@openldap.org>
Thu, 24 Mar 2011 10:38:09 +0000 (10:38 +0000)
servers/slapd/daemon.c

index df6d0962d930b3fc7d3d92b97e472d9893c132fe..21821aafdd6123be1e524672893c90501d247f21 100644 (file)
@@ -557,8 +557,8 @@ static slap_daemon_st slap_daemon[MAX_DAEMON_THREADS];
        memset( slap_daemon[t].sd_flags, 0, dtblsize ); \
        slapd_ws_sockets[t*2] = wake_sds[t][0]; \
        slapd_ws_sockets[t*2+1] = wake_sds[t][1]; \
-       wake_sds[0] = t*2; \
-       wake_sds[1] = t*2+1; \
+       wake_sds[t][0] = t*2; \
+       wake_sds[t][1] = t*2+1; \
        slap_daemon[t].sd_nfds = t*2 + 2; \
        } while ( 0 )