summaryrefslogtreecommitdiff
path: root/lib/rfc2818_hostname.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rfc2818_hostname.c')
-rw-r--r--lib/rfc2818_hostname.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rfc2818_hostname.c b/lib/rfc2818_hostname.c
index a3e11a14b2..ad3acd27dc 100644
--- a/lib/rfc2818_hostname.c
+++ b/lib/rfc2818_hostname.c
@@ -33,7 +33,7 @@ static int hostname_compare(const char *certname, const char *hostname);
* the given hostname. This is a basic implementation of the matching described
* in RFC2818 (HTTPS).
*
- * Returns 1 on success, and 0 on failure.
+ * Returns non zero on success, and zero on failure.
*
**/
int gnutls_x509_check_certificates_hostname(const gnutls_datum * cert,
@@ -43,7 +43,7 @@ int gnutls_x509_check_certificates_hostname(const gnutls_datum * cert,
char dnsname[GNUTLS_X509_CN_SIZE];
int dnsnamesize;
int found_dnsname = 0;
- int ret;
+ int ret = 0;
gnutls_DN dn;
int i = 0;