From: Jaroslav Kysela Date: Wed, 27 Dec 2017 08:46:19 +0000 (+0100) Subject: access: fix the ticket create for one ticket X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bcf9e1c0988bb6aaba879a41063b8f7f938ee854;p=thirdparty%2Ftvheadend.git access: fix the ticket create for one ticket --- diff --git a/src/access.c b/src/access.c index 20e798f52..f652752af 100644 --- a/src/access.c +++ b/src/access.c @@ -154,7 +154,7 @@ access_ticket_create(const char *resource, access_t *a) at->at_access = access_copy(a); at->at_timer.mti_expire = mclk() + lifetime; - i = TAILQ_FIRST(&access_tickets) != NULL; + i = TAILQ_EMPTY(&access_tickets); TAILQ_INSERT_TAIL(&access_tickets, at, at_link);