[svn-commits] dlee: trunk r394442 - /trunk/res/res_http_websocket.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Tue Jul 16 10:30:10 CDT 2013


Author: dlee
Date: Tue Jul 16 10:30:09 2013
New Revision: 394442

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=394442
Log:
Fixed null dereference when WebSocket protocol is omitted

Modified:
    trunk/res/res_http_websocket.c

Modified: trunk/res/res_http_websocket.c
URL: http://svnview.digium.com/svn/asterisk/trunk/res/res_http_websocket.c?view=diff&rev=394442&r1=394441&r2=394442
==============================================================================
--- trunk/res/res_http_websocket.c (original)
+++ trunk/res/res_http_websocket.c Tue Jul 16 10:30:09 2013
@@ -653,7 +653,7 @@
 		return 0;
 	}
 
-	ast_verb(2, "WebSocket connection from '%s' for protocol '%s' accepted using version '%d'\n", ast_sockaddr_stringify(&ser->remote_address), protocol, version);
+	ast_verb(2, "WebSocket connection from '%s' for protocol '%s' accepted using version '%d'\n", ast_sockaddr_stringify(&ser->remote_address), protocol ? : "", version);
 
 	/* Populate the session with all the needed details */
 	session->f = ser->f;




More information about the svn-commits mailing list