Fix unitialized warnings
authorDr. Stephen Henson <steve@openssl.org>
Sun, 4 Oct 2009 16:52:51 +0000 (16:52 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Sun, 4 Oct 2009 16:52:51 +0000 (16:52 +0000)
crypto/asn1/a_mbstr.c
ssl/d1_pkt.c

index 1bcd046..1538e0a 100644 (file)
@@ -93,7 +93,7 @@ int ASN1_mbstring_ncopy(ASN1_STRING **out, const unsigned char *in, int len,
        int str_type;
        int ret;
        char free_out;
-       int outform, outlen;
+       int outform, outlen = 0;
        ASN1_STRING *dest;
        unsigned char *p;
        int nchar;
index 3ee46c4..c9757e1 100644 (file)
@@ -534,7 +534,7 @@ int dtls1_get_record(SSL *s)
        int i,n;
        SSL3_RECORD *rr;
        SSL_SESSION *sess;
-       unsigned char *p;
+       unsigned char *p = NULL;
        unsigned short version;
        DTLS1_BITMAP *bitmap;
        unsigned int is_next_epoch;