From: Adam Sutton Date: Fri, 14 Mar 2014 20:23:40 +0000 (+0000) Subject: htsp: fix NULL ptr username, do it properly this time! X-Git-Tag: v4.1~2231 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3f3fdc8af16edb641aa43ba6a100d64d6074cbcb;p=thirdparty%2Ftvheadend.git htsp: fix NULL ptr username, do it properly this time! --- diff --git a/src/htsp_server.c b/src/htsp_server.c index efd165ac7..86d528da7 100644 --- a/src/htsp_server.c +++ b/src/htsp_server.c @@ -432,7 +432,7 @@ htsp_generate_challenge(htsp_connection_t *htsp) */ static int htsp_user_access_channel(htsp_connection_t *htsp, channel_t *ch) { - if (!access_tag_only(htsp->htsp_username)) + if (!access_tag_only(htsp->htsp_username ?: "")) return 1; else { if (!ch) return 0;