Fix an uninit variable usage

Reviewed-by: Rich Salz <rsalz@openssl.org>
This commit is contained in:
Matt Caswell 2016-11-23 16:06:46 +00:00
parent fb83f20c30
commit 5d8ce30634

View File

@ -144,7 +144,7 @@ static int async_write(BIO *bio, const char *in, int inl)
while (PACKET_remaining(&pkt) > 0) {
PACKET payload, wholebody;
unsigned int contenttype, versionhi, versionlo, data;
unsigned int msgtype = 0, negversion;
unsigned int msgtype = 0, negversion = 0;
if ( !PACKET_get_1(&pkt, &contenttype)
|| !PACKET_get_1(&pkt, &versionhi)