summaryrefslogtreecommitdiff
path: root/res/res_http_websocket.c
diff options
context:
space:
mode:
authorDavid M. Lee <dlee@digium.com>2013-07-16 15:30:09 +0000
committerDavid M. Lee <dlee@digium.com>2013-07-16 15:30:09 +0000
commit80dd0229f14c77db6c25fb5007bd4377631258c1 (patch)
treec0cec420fab6561d9bf3d4aed320257e9f032eb5 /res/res_http_websocket.c
parentd43b17a872e8227aa8a9905a21f90bd48f9d5348 (diff)
Fixed null dereference when WebSocket protocol is omitted
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@394442 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res/res_http_websocket.c')
-rw-r--r--res/res_http_websocket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/res/res_http_websocket.c b/res/res_http_websocket.c
index 0726950bb..f4c44c4e9 100644
--- a/res/res_http_websocket.c
+++ b/res/res_http_websocket.c
@@ -653,7 +653,7 @@ int ast_websocket_uri_cb(struct ast_tcptls_session_instance *ser, const struct a
return 0;
}
- ast_verb(2, "WebSocket connection from '%s' for protocol '%s' accepted using version '%d'\n", ast_sockaddr_stringify(&ser->remote_address), protocol, version);
+ ast_verb(2, "WebSocket connection from '%s' for protocol '%s' accepted using version '%d'\n", ast_sockaddr_stringify(&ser->remote_address), protocol ? : "", version);
/* Populate the session with all the needed details */
session->f = ser->f;