summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Slebodnik <lslebodn@redhat.com>2014-08-28 11:53:27 +0200
committerJakub Hrozek <jhrozek@redhat.com>2014-09-01 13:37:30 +0200
commite6bf08648e4b808da75d220dfab8d17a2352ca02 (patch)
treea05c489259b7391de26dcf1230005b3fcf5545db
parent8f3f857e227bdec008c9b80c2830cb3a389253af (diff)
downloadsssd-e6bf08648e4b808da75d220dfab8d17a2352ca02.tar.gz
sssd-e6bf08648e4b808da75d220dfab8d17a2352ca02.tar.xz
sssd-e6bf08648e4b808da75d220dfab8d17a2352ca02.zip
responder_socket_access-tests: Fix condition in loop
Function check_allowed_uids was not called at all. Reviewed-by: Pavel Březina <pbrezina@redhat.com>
-rw-r--r--src/tests/responder_socket_access-tests.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tests/responder_socket_access-tests.c b/src/tests/responder_socket_access-tests.c
index b1f7a4c17..fd4920d63 100644
--- a/src/tests/responder_socket_access-tests.c
+++ b/src/tests/responder_socket_access-tests.c
@@ -112,7 +112,7 @@ START_TEST(check_allowed_uids_test)
int ret;
size_t c;
- for (c = 0; uid_check_data[c].exp_ret == -1; c++) {
+ for (c = 0; uid_check_data[c].exp_ret != -1; c++) {
ret = check_allowed_uids(uid_check_data[c].uid,
uid_check_data[c].allowed_uids_count,
uid_check_data[c].allowed_uids);