Update of /cvsroot/libsnet/libsnet
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21570
Modified Files:
snet.c
Log Message:
set SNET_ZLIB flag after sanity checks (Maarten Thibaut)
Index: snet.c
===================================================================
RCS file: /cvsroot/libsnet/libsnet/snet.c,v
retrieving revision 1.56
retrieving revision 1.57
diff -C2 -d -r1.56 -r1.57
*** snet.c 27 Aug 2008 20:03:02 -0000 1.56
--- snet.c 4 Sep 2008 18:08:07 -0000 1.57
***************
*** 648,657 ****
#ifdef HAVE_ZLIB
int len = 0;
- #endif /* HAVE_ZLIB */
if ( sn->sn_flag & SNET_ZLIB ) {
return( -1 );
}
- sn->sn_flag |= SNET_ZLIB;
if ( type != SNET_ZLIB ) {
--- 648,655 ----
***************
*** 659,663 ****
}
- #ifdef HAVE_ZLIB
memset( &sn->sn_zistream, 0, sizeof( sn->sn_zistream ));
if ( inflateInit( &sn->sn_zistream ) != Z_OK ) {
--- 657,660 ----
|