summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2010-08-03 18:39:33 +0200
committerStephen Gallagher <sgallagh@redhat.com>2010-08-03 13:50:29 -0400
commit67f0e6de26a6d46dceb4f45c0c25b01ae2f29940 (patch)
treecf1fae2c1c01129ba127a315f345e0f3b1a58746 /src
parent90983939761dcfd15bac4e78265d5b6b38b573ae (diff)
downloadsssd-67f0e6de26a6d46dceb4f45c0c25b01ae2f29940.tar.gz
sssd-67f0e6de26a6d46dceb4f45c0c25b01ae2f29940.tar.xz
sssd-67f0e6de26a6d46dceb4f45c0c25b01ae2f29940.zip
Fix check_time_rule() return value on failure
The value returned in the 'done:' label was always EOK which is wrong as any parsing errors are not returned to the caller. Fixes: #583
Diffstat (limited to 'src')
-rw-r--r--src/providers/ipa/ipa_timerules.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/providers/ipa/ipa_timerules.c b/src/providers/ipa/ipa_timerules.c
index d55a154..28a61d7 100644
--- a/src/providers/ipa/ipa_timerules.c
+++ b/src/providers/ipa/ipa_timerules.c
@@ -1122,7 +1122,7 @@ int check_time_rule(TALLOC_CTX *mem_ctx,
ret = EOK;
done:
talloc_free(ctx);
- return EOK;
+ return ret;
}
/*