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.0.1~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e4fd8ba6b56e06d6a50e63e73769f0b3e69075b3;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 313179acd..74019ebd6 100644 --- a/src/htsp_server.c +++ b/src/htsp_server.c @@ -1450,6 +1450,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;