summaryrefslogtreecommitdiff
path: root/lib/x509/hostname-verify.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2014-09-08 10:43:21 +0200
committerNikos Mavrogiannopoulos <nmav@redhat.com>2014-09-08 10:43:21 +0200
commitf26cb633e0c99e1b28928d616a5a850e3e32f91e (patch)
treeafc10795e8691c3600190c7614432180e54d7ce8 /lib/x509/hostname-verify.c
parent75a2938927223d3c8b9527885f418f706577b3f2 (diff)
downloadgnutls-f26cb633e0c99e1b28928d616a5a850e3e32f91e.tar.gz
check_ip: initialize ret
Diffstat (limited to 'lib/x509/hostname-verify.c')
-rw-r--r--lib/x509/hostname-verify.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/x509/hostname-verify.c b/lib/x509/hostname-verify.c
index e924d5fe0c..e40aa5dc5a 100644
--- a/lib/x509/hostname-verify.c
+++ b/lib/x509/hostname-verify.c
@@ -54,7 +54,7 @@ check_ip(gnutls_x509_crt_t cert, const void *ip, unsigned ip_size, unsigned flag
char temp[16];
size_t temp_size;
unsigned i;
- int ret;
+ int ret = 0;
/* try matching against:
* 1) a IPaddress alternative name (subjectAltName) extension