Browse code

tls: minor DBG() fix for the servername extension

Andrei Pelinescu-Onciul authored on 19/03/2010 12:21:32
Showing 1 changed files
... ...
@@ -24,11 +24,10 @@
24 24
  * along with this program; if not, write to the Free Software
25 25
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
26 26
  */
27
-/*!
28
- * \file
29
- * \brief SIP-router TLS support :: Select interface
30
- * \ingroup tls
31
- * Module: \ref tls
27
+/** SIP-router TLS support :: Select interface.
28
+ * @file
29
+ * @ingroup tls
30
+ * Module: @ref tls
32 31
  */
33 32
 
34 33
 
... ...
@@ -962,9 +961,9 @@ static int get_tlsext_sn(str* res, sip_msg_t* msg)
962 962
 
963 963
 	server_name.s = (char*)SSL_get_servername(ssl, TLSEXT_NAMETYPE_host_name);
964 964
 	if (server_name.s) {
965
+		server_name.len = strlen(server_name.s);
965 966
 		DBG("received server_name (TLS extension): '%.*s'\n", 
966 967
 			STR_FMT(&server_name));
967
-		server_name.len = strlen(server_name.s);
968 968
 	} else {
969 969
 		DBG("SSL_get_servername returned NULL\n");
970 970
 		goto error;