Fixed unchecked return value from function dp_opt_set_int in file
src/tests/krb5_child-test.c.
>From a10a4378727d153f6cea3db33d5dbe5f4624b67e Mon Sep 17 00:00:00 2001
From: Michal Zidek <mzi...@redhat.com>
Date: Thu, 19 Jul 2012 11:52:13 +0200
Subject: [PATCH] Fixed: Unchecked return value from dp_opt_set_int.
---
src/tests/krb5_child-test.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/tests/krb5_child-test.c b/src/tests/krb5_child-test.c
index ff3e95a..2e73371 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) {
--
1.7.10.4
_______________________________________________
sssd-devel mailing list
sssd-devel@lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/sssd-devel