htsp: fix NULL ptr username, do it properly this time!
This commit is contained in:
parent
9398e6dac3
commit
3f3fdc8af1
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue