From: David M. Lee Date: Tue, 16 Jul 2013 15:30:09 +0000 (+0000) Subject: Fixed null dereference when WebSocket protocol is omitted X-Git-Tag: 13.0.0-beta1~1489 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=80dd0229f14c77db6c25fb5007bd4377631258c1;p=thirdparty%2Fasterisk.git Fixed null dereference when WebSocket protocol is omitted git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@394442 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/res/res_http_websocket.c b/res/res_http_websocket.c index 0726950bb6..f4c44c4e90 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;