[sr-dev] git:master: tls: minor DBG() fix for the servername extension

Andrei Pelinescu-Onciul andrei at iptel.org
Fri Mar 19 15:31:04 CET 2010


Module: sip-router
Branch: master
Commit: 28b53c804b4853c31c8cb14227f207c9f085fb53
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=28b53c804b4853c31c8cb14227f207c9f085fb53

Author: Andrei Pelinescu-Onciul <andrei at iptel.org>
Committer: Andrei Pelinescu-Onciul <andrei at iptel.org>
Date:   Fri Mar 19 13:21:32 2010 +0100

tls: minor DBG() fix for the servername extension

---

 modules/tls/tls_select.c |   11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/modules/tls/tls_select.c b/modules/tls/tls_select.c
index ac14cdb..dba9a6e 100644
--- a/modules/tls/tls_select.c
+++ b/modules/tls/tls_select.c
@@ -24,11 +24,10 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
-/*!
- * \file
- * \brief SIP-router TLS support :: Select interface
- * \ingroup tls
- * Module: \ref tls
+/** SIP-router TLS support :: Select interface.
+ * @file
+ * @ingroup tls
+ * Module: @ref tls
  */
 
 
@@ -962,9 +961,9 @@ static int get_tlsext_sn(str* res, sip_msg_t* msg)
 
 	server_name.s = (char*)SSL_get_servername(ssl, TLSEXT_NAMETYPE_host_name);
 	if (server_name.s) {
+		server_name.len = strlen(server_name.s);
 		DBG("received server_name (TLS extension): '%.*s'\n", 
 			STR_FMT(&server_name));
-		server_name.len = strlen(server_name.s);
 	} else {
 		DBG("SSL_get_servername returned NULL\n");
 		goto error;




More information about the sr-dev mailing list