From: Pierangelo Masarati Date: Mon, 23 Dec 2002 12:02:29 +0000 (+0000) Subject: silence warnings X-Git-Tag: NO_SLAP_OP_BLOCKS~641 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d7582965950c5b55ea5bbffb75b2573596935bf7;p=openldap silence warnings --- diff --git a/libraries/libldap/tls.c b/libraries/libldap/tls.c index 9a4b444304..8a8b022248 100644 --- a/libraries/libldap/tls.c +++ b/libraries/libldap/tls.c @@ -15,6 +15,7 @@ #include #include #include +#include #include #include #include @@ -1016,8 +1017,8 @@ ldap_pvt_tls_check_hostname( LDAP *ld, void *s, const char *name_in ) ex = X509_get_ext(x, i); alt = X509V3_EXT_d2i(ex); if (alt) { - int n, len1, len2 = 0; - char *domain; + int n, len1 = 0, len2 = 0; + char *domain = NULL; GENERAL_NAME *gn; if (ntype == IS_DNS) { @@ -1422,7 +1423,7 @@ tls_info_cb( const SSL *ssl, int where, int ret ) { int w; char *op; - char *state = (char *) SSL_state_string_long( ssl ); + char *state = (char *) SSL_state_string_long( (SSL *)ssl ); w = where & ~SSL_ST_MASK; if ( w & SSL_ST_CONNECT ) {