From: Jaroslav Kysela Date: Sun, 23 Nov 2014 15:39:03 +0000 (+0100) Subject: access: fix copy-and-paste error for the destroy fcns X-Git-Tag: v4.1~702 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=44633b8f7468548aa9022fa74398dce9fa28d2e3;p=thirdparty%2Ftvheadend.git access: fix copy-and-paste error for the destroy fcns --- diff --git a/src/access.c b/src/access.c index 945390cf1..6db0c2f27 100644 --- a/src/access.c +++ b/src/access.c @@ -901,7 +901,7 @@ access_destroy_by_profile(profile_t *pro, int delconf) while ((ae = LIST_FIRST(&pro->pro_accesses)) != NULL) { LIST_REMOVE(ae, ae_profile_link); - ae->ae_dvr_config = NULL; + ae->ae_profile = NULL; if (delconf) access_entry_save(ae); } @@ -917,7 +917,7 @@ access_destroy_by_dvr_config(dvr_config_t *cfg, int delconf) while ((ae = LIST_FIRST(&cfg->dvr_accesses)) != NULL) { LIST_REMOVE(ae, ae_dvr_config_link); - ae->ae_profile = profile_find_by_name(NULL, NULL); + ae->ae_dvr_config = NULL; if (delconf) access_entry_save(ae); }