]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
htsp: initialize creator for network accounts without usernames (IP addresses), fixes...
authorJaroslav Kysela <perex@perex.cz>
Thu, 21 May 2015 19:51:35 +0000 (21:51 +0200)
committerJaroslav Kysela <perex@perex.cz>
Thu, 21 May 2015 19:51:35 +0000 (21:51 +0200)
src/htsp_server.c

index 5c6b3895a4e98cbe649d042ebcc1f45dad09fae1..77fa2e43c38727ce48545c15c8fe95e5710d2b19 100644 (file)
@@ -1464,6 +1464,8 @@ htsp_method_addDvrEntry(htsp_connection_t *htsp, htsmsg_t *in)
     retention = 0;
   comment = htsmsg_get_str(in, "comment");
   creator = htsp->htsp_username;
+  if (creator == NULL || *creator == '\0')
+    creator = htsp->htsp_granted_access->aa_representative;
   if (!(lang        = htsmsg_get_str(in, "language")))
     lang    = htsp->htsp_language;