From 80dd0229f14c77db6c25fb5007bd4377631258c1 Mon Sep 17 00:00:00 2001 From: "David M. Lee" Date: Tue, 16 Jul 2013 15:30:09 +0000 Subject: Fixed null dereference when WebSocket protocol is omitted git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@394442 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- res/res_http_websocket.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'res') 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; -- cgit v1.2.3