X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=security%2Fselinux%2Fss%2Fsidtab.c;h=4a516ff4bcdeb2b7e77df8a88ff57546eaef58c2;hb=c65a3500b2947d344862da8cce626b7cc7ec5758;hp=53a54a77f1f8ca806a65becc6e5464e394d48dbc;hpb=9333907084da2b05db787dba3e714d0be7c84f36;p=linux-2.6 diff --git a/security/selinux/ss/sidtab.c b/security/selinux/ss/sidtab.c index 53a54a77f1..4a516ff4bc 100644 --- a/security/selinux/ss/sidtab.c +++ b/security/selinux/ss/sidtab.c @@ -156,12 +156,10 @@ void sidtab_map_remove_on_error(struct sidtab *s, while (cur != NULL) { ret = apply(cur->sid, &cur->context, args); if (ret) { - if (last) { + if (last) last->next = cur->next; - } else { + else s->htable[i] = cur->next; - } - temp = cur; cur = cur->next; context_destroy(&temp->context);