From d831315024e79fa3d72d644299a31032ae80786a Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Thu, 25 Mar 2004 09:54:23 +0000 Subject: [PATCH] ITS#2982 be sure to use nextlc when calling try_read1msg --- libraries/libldap/result.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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, -- 2.39.5