Fix an uninit variable usage
authorMatt Caswell <matt@openssl.org>
Wed, 23 Nov 2016 16:06:46 +0000 (16:06 +0000)
committerMatt Caswell <matt@openssl.org>
Wed, 23 Nov 2016 16:06:46 +0000 (16:06 +0000)
Reviewed-by: Rich Salz <rsalz@openssl.org>
test/asynciotest.c

index d7b1dd3..e147472 100644 (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;
             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)
 
                 if (   !PACKET_get_1(&pkt, &contenttype)
                     || !PACKET_get_1(&pkt, &versionhi)