mirror of
https://github.com/PowerShell/Win32-OpenSSH.git
synced 2025-07-23 05:55:41 +02:00
#if out setting of compress hooks if not using ZLIB
We shouldn't even try to call ssh_packet_set_compress_hooks if zlib isn't enabled. This change conditionally compiles it out.
This commit is contained in:
parent
ddace27b97
commit
27739d90ed
@ -1965,10 +1965,12 @@ monitor_init(void)
|
|||||||
mon->m_zback = mm_create(NULL, MM_MEMSIZE);
|
mon->m_zback = mm_create(NULL, MM_MEMSIZE);
|
||||||
mon->m_zlib = mm_create(mon->m_zback, 20 * MM_MEMSIZE);
|
mon->m_zlib = mm_create(mon->m_zback, 20 * MM_MEMSIZE);
|
||||||
|
|
||||||
|
#ifndef WIN32_ZLIB_NO
|
||||||
/* Compression needs to share state across borders */
|
/* Compression needs to share state across borders */
|
||||||
ssh_packet_set_compress_hooks(ssh, mon->m_zlib,
|
ssh_packet_set_compress_hooks(ssh, mon->m_zlib,
|
||||||
(ssh_packet_comp_alloc_func *)mm_zalloc,
|
(ssh_packet_comp_alloc_func *)mm_zalloc,
|
||||||
(ssh_packet_comp_free_func *)mm_zfree);
|
(ssh_packet_comp_free_func *)mm_zfree);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
return mon;
|
return mon;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user