remove redundant check

This commit is contained in:
Sean Middleditch 2009-03-16 01:09:41 -04:00
parent 823bc00ab9
commit ebc96f7660
1 changed files with 0 additions and 7 deletions

View File

@ -847,13 +847,6 @@ void libtelnet_begin_compress2(libtelnet_t *telnet) {
unsigned char compress2[] = { LIBTELNET_IAC, LIBTELNET_SB,
LIBTELNET_TELOPT_COMPRESS2, LIBTELNET_IAC, LIBTELNET_SE };
/* don't do this if we've already got a compression stream */
if (telnet->z != 0) {
_error(telnet, __LINE__, __func__, LIBTELNET_EBADVAL, 0,
"compression already enabled");
return;
}
/* attempt to create output stream first, bail if we can't */
if (_init_zlib(telnet, 1, 0) != LIBTELNET_EOK)
return;