mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-07-07 16:23:13 +02:00
Zip links fixes
This commit is contained in:
@@ -1989,3 +1989,4 @@ seen. gmtime warning still there
|
||||
flooder is banned for and how much data (in KB) the user must send before being banned.
|
||||
This should fix (#0000767) reported by ora.
|
||||
- Updated some documentation
|
||||
- (Hopefully) fixed some Ziplinks problems
|
||||
|
||||
@@ -117,21 +117,20 @@ int zip_init(aClient *cptr, int compressionlevel)
|
||||
*/
|
||||
void zip_free(aClient *cptr)
|
||||
{
|
||||
if (cptr->zip)
|
||||
{
|
||||
if (cptr->zip->in) {
|
||||
inflateEnd(cptr->zip->in);
|
||||
MyFree(cptr->zip->in);
|
||||
cptr->zip->in = NULL;
|
||||
}
|
||||
if (cptr->zip->out) {
|
||||
deflateEnd(cptr->zip->out);
|
||||
MyFree(cptr->zip->out);
|
||||
cptr->zip->out = NULL;
|
||||
}
|
||||
MyFree(cptr->zip);
|
||||
cptr->zip = NULL;
|
||||
}
|
||||
ClearZipped(cptr);
|
||||
if (cptr->zip)
|
||||
{
|
||||
if (cptr->zip->in)
|
||||
inflateEnd(cptr->zip->in);
|
||||
MyFree(cptr->zip->in);
|
||||
cptr->zip->in = NULL;
|
||||
if (cptr->zip->out)
|
||||
deflateEnd(cptr->zip->out);
|
||||
MyFree(cptr->zip->out);
|
||||
cptr->zip->out = NULL;
|
||||
MyFree(cptr->zip);
|
||||
cptr->zip = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user