]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
idnode: fix nasty idnode access check bug
authorJaroslav Kysela <perex@perex.cz>
Thu, 8 Oct 2015 19:12:19 +0000 (21:12 +0200)
committerJaroslav Kysela <perex@perex.cz>
Thu, 8 Oct 2015 19:13:16 +0000 (21:13 +0200)
src/idnode.c

index 76110ec21e51ec3f3759ffe223c5a993138d5d73..24077f64a5974f3fc2446e88326dc537906deb7e 100644 (file)
@@ -564,7 +564,7 @@ idnode_perm(idnode_t *self, struct access *a, htsmsg_t *msg_to_write)
     if (ic->ic_perm)
       return self->in_class->ic_perm(self, a, msg_to_write);
     if (ic->ic_perm_def)
-      return access_verify2(a, self->in_class->ic_perm_def);
+      return access_verify2(a, ic->ic_perm_def);
     ic = ic->ic_super;
   }
   return 0;