]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Fixed null dereference when WebSocket subprotocol isn't specified
authorDavid M. Lee <dlee@digium.com>
Thu, 18 Jul 2013 18:05:07 +0000 (18:05 +0000)
committerDavid M. Lee <dlee@digium.com>
Thu, 18 Jul 2013 18:05:07 +0000 (18:05 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@394744 65c4cc65-6c06-0410-ace0-fbb531ad65f3

res/res_http_websocket.c

index f4c44c4e9082a7d573ac9f395a0ba11e4345435c..129e92c192b17037fca7d23b81962ecd771be0a9 100644 (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 */