openssl: fix zlib bug

Fixes #17696.