mirror of
https://github.com/bol-van/zapret2.git
synced 2026-03-13 22:03:09 +00:00
AI fixes
This commit is contained in:
@@ -1796,7 +1796,7 @@ static int rawsend_sendto_divert(sa_family_t family, int sock, const void *buf,
|
|||||||
char s[64];
|
char s[64];
|
||||||
snprintf(s,sizeof(s),"rawsend_sendto_divert: sendto (%zu)",len);
|
snprintf(s,sizeof(s),"rawsend_sendto_divert: sendto (%zu)",len);
|
||||||
DLOG_PERROR(s);
|
DLOG_PERROR(s);
|
||||||
return false;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
return wr;
|
return wr;
|
||||||
|
|||||||
12
nfq2/gzip.c
12
nfq2/gzip.c
@@ -77,8 +77,16 @@ int z_readfile(FILE *F, char **buf, size_t *size, size_t extra_alloc)
|
|||||||
|
|
||||||
if (*size < bufsize)
|
if (*size < bufsize)
|
||||||
{
|
{
|
||||||
// free extra space
|
if (*size + extra_alloc)
|
||||||
if ((newbuf = realloc(*buf, *size + extra_alloc))) *buf = newbuf;
|
{
|
||||||
|
// free extra space
|
||||||
|
if ((newbuf = realloc(*buf, *size + extra_alloc))) *buf = newbuf;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
free(*buf);
|
||||||
|
*buf = NULL;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
inflateEnd(&zs);
|
inflateEnd(&zs);
|
||||||
|
|||||||
Reference in New Issue
Block a user