ITS#2982 be sure to use nextlc when calling try_read1msg

This commit is contained in:
Howard Chu 2004-03-25 09:54:23 +00:00
parent 54fba01be2
commit d831315024

View File

@ -315,7 +315,8 @@ wait4msg(
rc = (*result)->lm_msgtype; rc = (*result)->lm_msgtype;
} else { } 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, if ( ber_sockbuf_ctrl( lc->lconn_sb,
LBER_SB_OPT_DATA_READY, NULL ) ) { LBER_SB_OPT_DATA_READY, NULL ) ) {
rc = try_read1msg( ld, msgid, all, lc->lconn_sb, rc = try_read1msg( ld, msgid, all, lc->lconn_sb,