bugfix: allocate sufficiently large buffer
bugfix: allocate sufficiently large buffer

Submitted by: Nils Larsch

openssl/openssl,openssl/openssl,openssl/openssl,openssl/openssl,openssl/openssl,openssl/openssl