add fix lost in conflict/merge from master

This commit is contained in:
Sean Middleditch 2009-03-16 01:09:26 -04:00
parent 8b78896ac1
commit 823bc00ab9
1 changed files with 1 additions and 1 deletions

View File

@ -130,7 +130,7 @@ static void _send(libtelnet_t *telnet, unsigned char *buffer,
unsigned int size) {
#ifdef HAVE_ZLIB
/* if we have a deflate (compression) zlib box, use it */
if (telnet->z != 0) {
if (telnet->z != 0 && telnet->flags & LIBTELNET_PFLAG_DEFLATE) {
unsigned char deflate_buffer[1024];
int rs;