From: Howard Chu Date: Thu, 25 Mar 2004 09:54:23 +0000 (+0000) Subject: ITS#2982 be sure to use nextlc when calling try_read1msg X-Git-Tag: OPENLDAP_REL_ENG_2_2_BP~175 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d831315024e79fa3d72d644299a31032ae80786a;p=openldap ITS#2982 be sure to use nextlc when calling try_read1msg --- diff --git a/libraries/libldap/result.c b/libraries/libldap/result.c index 0614f41be9..42e758d053 100644 --- a/libraries/libldap/result.c +++ b/libraries/libldap/result.c @@ -315,7 +315,8 @@ wait4msg( rc = (*result)->lm_msgtype; } else { - for ( lc = ld->ld_conns; lc != NULL; lc = lc->lconn_next ) { + for ( lc = ld->ld_conns; lc != NULL; lc = nextlc ) { + nextlc = lc->lconn_next; if ( ber_sockbuf_ctrl( lc->lconn_sb, LBER_SB_OPT_DATA_READY, NULL ) ) { rc = try_read1msg( ld, msgid, all, lc->lconn_sb,