mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-02 20:08:17 +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",
|
||||
upgrade,
|
||||
base64,
|
||||
protocol);
|
||||
protocol_handler->name);
|
||||
} else {
|
||||
|
||||
/* Specification defined in http://tools.ietf.org/html/draft-hixie-thewebsocketprotocol-75 or completely unknown */
|
||||
|
||||
Reference in New Issue
Block a user