Skip to content

Commit

Permalink
checkpolicy: dereference rangehead after checking it was not NULL
Browse files Browse the repository at this point in the history
Signed-off-by: Nicolas Iooss <[email protected]>
  • Loading branch information
fishilico authored and jwcart2 committed Mar 21, 2017
1 parent 6707526 commit 9087bb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion checkpolicy/policy_define.c
Original file line number Diff line number Diff line change
Expand Up @@ -1924,11 +1924,11 @@ int avrule_ioctl_ranges(struct av_ioctl_range_list **rangelist)
/* read in ranges to include and omit */
if (avrule_read_ioctls(&rangehead))
return -1;
omit = rangehead->omit;
if (rangehead == NULL) {
yyerror("error processing ioctl commands");
return -1;
}
omit = rangehead->omit;
/* sort and merge the input ioctls */
if (avrule_sort_ioctls(&rangehead))
return -1;
Expand Down

0 comments on commit 9087bb9

Please sign in to comment.