Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
access: fix SIGSEGV when accessing a profile without name, fixes #4103
  • Loading branch information
perexg committed Nov 28, 2016
1 parent 04ff649 commit c09f704
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/access.c
Expand Up @@ -561,7 +561,7 @@ access_update(access_t *a, access_entry_t *ae)

LIST_FOREACH(ilm, &ae->ae_profiles, ilm_in1_link) {
profile_t *pro = (profile_t *)ilm->ilm_in2;
if(pro && pro->pro_name[0] != '\0') {
if(pro && pro->pro_name && pro->pro_name[0] != '\0') {
if (a->aa_profiles == NULL)
a->aa_profiles = htsmsg_create_list();
htsmsg_add_str_exclusive(a->aa_profiles, idnode_uuid_as_str(&pro->pro_id, ubuf));
Expand Down

0 comments on commit c09f704

Please sign in to comment.