Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
ACL: Fix the password initialization when ACL entry is created, fixes…
… #2252
  • Loading branch information
perexg committed Sep 10, 2014
1 parent 78de846 commit 26c778d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/access.c
Expand Up @@ -586,6 +586,7 @@ access_entry_create(const char *uuid, htsmsg_t *conf)
{
access_ipmask_t *ai;
access_entry_t *ae, *ae2;
const char *s;

lock_assert(&global_lock);

Expand All @@ -602,6 +603,9 @@ access_entry_create(const char *uuid, htsmsg_t *conf)

if (conf) {
idnode_load(&ae->ae_id, conf);
/* note password has PO_NOSAVE, thus it must be set manually */
if ((s = htsmsg_get_str(conf, "password")) != NULL)
access_entry_class_password_set(ae, s);
access_entry_update_rights(ae);
TAILQ_FOREACH(ae2, &access_entries, ae_link)
if (ae->ae_index < ae2->ae_index)
Expand Down

0 comments on commit 26c778d

Please sign in to comment.