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:
nhmall
2018-09-22 09:11:51 -04:00
parent 0aa9e00099
commit fe68925100

View File

@@ -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';