commit | d80556d885c551e59c2a0863fbccf00ae048865c | [log] [tgz] |
---|---|---|
author | Jan Zarsky <jzarsky@redhat.com> | Wed Nov 22 16:09:59 2017 +0100 |
committer | William Roberts <william.c.roberts@intel.com> | Mon Nov 27 11:09:16 2017 -0800 |
tree | f755ebbc2dcc04008defff95f8dae05deb692e35 | |
parent | 2d49a4b41c6ecbcf254e6045f2e01f677ad58ffe [diff] |
libsemanage: properly check return value of iterate function Function dbase_llist_iterate iterates over records and checks return value of iterate function. According to a manpage semanage_iterate(3), handler can return value 1 for early exit. dbase_llist_iterate currently checks for return value > 1, which does not include expected value 1. This affects most of the semanage_*_iterate and semanage_*_local functions. Signed-off-by: Jan Zarsky <jzarsky@redhat.com>