From 3f3fdc8af16edb641aa43ba6a100d64d6074cbcb Mon Sep 17 00:00:00 2001 From: Adam Sutton Date: Fri, 14 Mar 2014 20:23:40 +0000 Subject: [PATCH] htsp: fix NULL ptr username, do it properly this time! --- src/htsp_server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/htsp_server.c b/src/htsp_server.c index efd165ac..86d528da 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;