mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-19 00:00:09 +00:00
Fixed null dereference when WebSocket subprotocol isn't specified
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@394744 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -630,7 +630,7 @@ int ast_websocket_uri_cb(struct ast_tcptls_session_instance *ser, const struct a
|
|||||||
"Sec-WebSocket-Protocol: %s\r\n\r\n",
|
"Sec-WebSocket-Protocol: %s\r\n\r\n",
|
||||||
upgrade,
|
upgrade,
|
||||||
base64,
|
base64,
|
||||||
protocol);
|
protocol_handler->name);
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
/* Specification defined in http://tools.ietf.org/html/draft-hixie-thewebsocketprotocol-75 or completely unknown */
|
/* Specification defined in http://tools.ietf.org/html/draft-hixie-thewebsocketprotocol-75 or completely unknown */
|
||||||
|
|||||||
Reference in New Issue
Block a user