From: Jaroslav Kysela Date: Thu, 21 May 2015 19:51:35 +0000 (+0200) Subject: htsp: initialize creator for network accounts without usernames (IP addresses), fixes... X-Git-Tag: v4.2.1~2501 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ccbdd82e4175d965d1279d44409840a30ef8f0cf;p=thirdparty%2Ftvheadend.git htsp: initialize creator for network accounts without usernames (IP addresses), fixes #2865 --- diff --git a/src/htsp_server.c b/src/htsp_server.c index 5c6b3895a..77fa2e43c 100644 --- a/src/htsp_server.c +++ b/src/htsp_server.c @@ -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;