Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
access: fix copy-and-paste error for the destroy fcns
  • Loading branch information
perexg committed Nov 23, 2014
1 parent e874526 commit 44633b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/access.c
Expand Up @@ -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);
}
Expand All @@ -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);
}
Expand Down

0 comments on commit 44633b8

Please sign in to comment.