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:
David M. Lee
2013-07-18 18:05:07 +00:00
parent 81f36bee0f
commit 3c86832f9f

View File

@@ -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 */