another BL_CHARACTERISTICS fix
With the code as it stood, receipt of BL_CHARACTERISTICS would trigger a flush of output which may not have been the intention. Ensure the flush code is only on BL_FLUSH (or BL_RESET).
This commit is contained in:
@@ -974,6 +974,10 @@ unsigned long *colormasks UNUSED;
|
||||
return; /* processed one field other than BL_FLUSH */
|
||||
} /* (idx >= 0, thus not BL_FLUSH, BL_RESET, BL_CHARACTERISTICS) */
|
||||
|
||||
if (idx != BL_FLUSH && idx != BL_RESET)
|
||||
return;
|
||||
/* does BL_RESET require any additional code to ensure all fields ? */
|
||||
|
||||
/* We've received BL_FLUSH; time to output the gathered data */
|
||||
nb = newbot1;
|
||||
*nb = '\0';
|
||||
|
||||
Reference in New Issue
Block a user