aboutsummaryrefslogtreecommitdiff
path: root/lib/ssluse.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-01-16 09:17:04 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-01-16 09:17:04 +0000
commit61e3d75def4ca1789a847fe57b06ab25ede05731 (patch)
treec0427949550579dcd921dee721415b9ab9ca72d4 /lib/ssluse.c
parent27b7220f1b536f3854d9fa35d0bd12321ac858e3 (diff)
Gisle Vanem's patch for variables that "might be used uninitialized"
Diffstat (limited to 'lib/ssluse.c')
-rw-r--r--lib/ssluse.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/ssluse.c b/lib/ssluse.c
index 95a4a1aa5..f53c8dc7e 100644
--- a/lib/ssluse.c
+++ b/lib/ssluse.c
@@ -783,7 +783,7 @@ static CURLcode verifyhost(struct connectdata *conn,
char peer_CN[257];
bool matched = FALSE; /* no alternative match yet */
int target = GEN_DNS; /* target type, GEN_DNS or GEN_IPADD */
- int addrlen;
+ int addrlen = 0;
struct SessionHandle *data = conn->data;
STACK_OF(GENERAL_NAME) *altnames;
#ifdef ENABLE_IPV6
@@ -809,9 +809,9 @@ static CURLcode verifyhost(struct connectdata *conn,
altnames = X509_get_ext_d2i(server_cert, NID_subject_alt_name, NULL, NULL);
if(altnames) {
- int hostlen;
- int domainlen;
- char *domain;
+ int hostlen = 0;
+ int domainlen = 0;
+ char *domain = NULL;
int numalts;
int i;