Index: ossp-pkg/l2/l2_ch_buffer.c RCS File: /v/ossp/cvs/ossp-pkg/l2/l2_ch_buffer.c,v rcsdiff -q -kk '-r1.34' '-r1.35' -u '/v/ossp/cvs/ossp-pkg/l2/l2_ch_buffer.c,v' 2>/dev/null --- l2_ch_buffer.c 2001/11/07 13:05:20 1.34 +++ l2_ch_buffer.c 2001/11/16 20:07:54 1.35 @@ -239,11 +239,12 @@ } } - /* flush if level of incoming message differs from those already in buffer */ - if ( (cfg->levelflush) /* if different levels force a flush */ - && (cfg->bufpos > 0) /* and there is something in the buffer */ - && (cfg->level != L2_LEVEL_NONE) /* and a remembered level is known */ - && (level != cfg->level) /* and the levels really differ */) { + /* flush if incoming message level differs from those already in buffer */ + if ( (cfg->levelflush) /* if different levels force a flush */ + && (cfg->bufpos > 0) /* and there is something in the buffer */ + && (cfg->level != L2_LEVEL_NONE) /* and a remembered level is known */ + && (level != cfg->level) /* and the levels really differ */) + { downstream = NULL; while (l2_channel_downstream(ch, &downstream) == L2_OK) if ((rv = l2_channel_write(downstream, cfg->level, cfg->buf, cfg->bufpos)) != L2_OK)