}
FlushStrBuf(pBuf);
}
- } while (rc == 1);
+ } while ((rc == 1) && (StrLength(pBuf) > 0));
}
FlushStrBuf(WCC->WBuf);
}
}
}
- StrBufDestroyStreamContext(eZLibEncode, SC);
+ StrBufDestroyStreamContext(eZLibEncode, &SC);
FreeStrBuf(&WriteBuffer.Buf);
if ((chunked) && (client_con_state == 0))
{