]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
htsp: fix NULL ptr username, do it properly this time!
authorAdam Sutton <dev@adamsutton.me.uk>
Fri, 14 Mar 2014 20:23:40 +0000 (20:23 +0000)
committerAdam Sutton <dev@adamsutton.me.uk>
Fri, 14 Mar 2014 20:23:40 +0000 (20:23 +0000)
src/htsp_server.c

index efd165ac7806a318cc1c2f8d6c3306cc1aaa1a21..86d528da79553a9128f3d8eb0eb6f696404557d8 100644 (file)
@@ -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;