[asterisk-commits] dlee: trunk r394744 - /trunk/res/res_http_websocket.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Jul 18 13:05:08 CDT 2013


Author: dlee
Date: Thu Jul 18 13:05:07 2013
New Revision: 394744

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=394744
Log:
Fixed null dereference when WebSocket subprotocol isn't specified

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=394744&r1=394743&r2=394744
==============================================================================
--- trunk/res/res_http_websocket.c (original)
+++ trunk/res/res_http_websocket.c Thu Jul 18 13:05:07 2013
@@ -630,7 +630,7 @@
 			"Sec-WebSocket-Protocol: %s\r\n\r\n",
 			upgrade,
 			base64,
-			protocol);
+			protocol_handler->name);
 	} else {
 
 		/* Specification defined in http://tools.ietf.org/html/draft-hixie-thewebsocketprotocol-75 or completely unknown */




More information about the asterisk-commits mailing list