]> git.ipfire.org Git - thirdparty/libcgroup.git/commit
api.c: fix infinite loop
authorNikola Forró <nforro@redhat.com>
Tue, 8 Dec 2015 15:53:41 +0000 (16:53 +0100)
committerJan Safranek <jsafrane@redhat.com>
Wed, 9 Dec 2015 13:22:00 +0000 (14:22 +0100)
commit1bce3ab63968022e97599bbd73ec1a66aacf45bc
treee5e478862a4b52bb59125f382ff58cb6452bfe60
parent691430206f1104b752b0e52386f317e639137788
api.c: fix infinite loop

If getgrnam or getpwuid functions failed, the program entered
an infinite loop, because the rule pointer was never advanced.
This is now fixed by updating the pointer before continuing
to the next iteration.
src/api.c