[asterisk-commits] russell: branch group/sip-tcptls r92361 - /team/group/sip-tcptls/main/server.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Dec 11 13:40:46 CST 2007


Author: russell
Date: Tue Dec 11 13:40:45 2007
New Revision: 92361

URL: http://svn.digium.com/view/asterisk?view=rev&rev=92361
Log:
resolve a couple of compiler warnings

Modified:
    team/group/sip-tcptls/main/server.c

Modified: team/group/sip-tcptls/main/server.c
URL: http://svn.digium.com/view/asterisk/team/group/sip-tcptls/main/server.c?view=diff&rev=92361&r1=92360&r2=92361
==============================================================================
--- team/group/sip-tcptls/main/server.c (original)
+++ team/group/sip-tcptls/main/server.c Tue Dec 11 13:40:45 2007
@@ -220,7 +220,7 @@
 struct server_instance *client_start(struct server_args *desc)
 {
 	int flags;
-	struct server_instance *ser;
+	struct server_instance *ser = NULL;
 
 	/* Do nothing if nothing has changed */
 	if(!memcmp(&desc->oldsin, &desc->sin, sizeof(desc->oldsin))) {
@@ -411,7 +411,7 @@
 						str = X509_NAME_ENTRY_get_data(X509_NAME_get_entry(name, pos));
 						ASN1_STRING_to_UTF8(&str2, str);
 						if (str2) {
-							if (!strcasecmp(ser->parent->hostname, str2))
+							if (!strcasecmp(ser->parent->hostname, (char *) str2))
 								found = 1;
 							ast_log(LOG_DEBUG, "SSL Common Name compare s1='%s' s2='%s'\n", ser->parent->hostname, str2);
 							OPENSSL_free(str2);




More information about the asterisk-commits mailing list