diff options
author | David M. Lee <dlee@digium.com> | 2013-07-18 18:05:07 +0000 |
---|---|---|
committer | David M. Lee <dlee@digium.com> | 2013-07-18 18:05:07 +0000 |
commit | 3c86832f9f271c8d479cf956155424fda512c76b (patch) | |
tree | 31d1db397a1f6a061ed11f0ed6f517c769db0e68 /res/res_http_websocket.c | |
parent | 81f36bee0f881259aa9313f3bb5c1049e8de038d (diff) |
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
Diffstat (limited to 'res/res_http_websocket.c')
-rw-r--r-- | res/res_http_websocket.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/res/res_http_websocket.c b/res/res_http_websocket.c index f4c44c4e9..129e92c19 100644 --- a/res/res_http_websocket.c +++ b/res/res_http_websocket.c @@ -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 */ |