summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Zidek <mzidek@redhat.com>2012-07-19 11:52:13 +0200
committerJakub Hrozek <jhrozek@redhat.com>2012-07-18 13:10:15 +0200
commitf8ddfa0e57477b8aa398273cb85b1db42582cead (patch)
tree0f3d830fed34bb3501e71752b2bf385c4aa56563
parent33988e421afa86892a732cc74c153fdc5be8703b (diff)
downloadsssd-f8ddfa0e57477b8aa398273cb85b1db42582cead.tar.gz
sssd-f8ddfa0e57477b8aa398273cb85b1db42582cead.tar.bz2
sssd-f8ddfa0e57477b8aa398273cb85b1db42582cead.zip
Fixed: Unchecked return value from dp_opt_set_int.
-rw-r--r--src/tests/krb5_child-test.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/tests/krb5_child-test.c b/src/tests/krb5_child-test.c
index ff3e95a7..2e733716 100644
--- a/src/tests/krb5_child-test.c
+++ b/src/tests/krb5_child-test.c
@@ -238,7 +238,11 @@ create_dummy_req(TALLOC_CTX *mem_ctx, const char *user,
}
if (timeout) {
- dp_opt_set_int(kr->krb5_ctx->opts, KRB5_AUTH_TIMEOUT, timeout);
+ ret = dp_opt_set_int(kr->krb5_ctx->opts, KRB5_AUTH_TIMEOUT, timeout);
+ if (ret != EOK) {
+ DEBUG(SSSDBG_CRIT_FAILURE, ("Failed to set value for krb5_auth_timeout\n"));
+ goto fail;
+ }
}
if (!ccname) {