summaryrefslogtreecommitdiffstats
path: root/proxy/tests
diff options
context:
space:
mode:
authorGünther Deschner <gdeschner@redhat.com>2013-02-23 11:58:56 +0100
committerSimo Sorce <simo@redhat.com>2013-03-14 13:42:50 -0400
commit9fd4d3a355fefcf1c903502102e2e6407ae5f6dd (patch)
treeb5a8b0678044c6cc3ca3a3c8bd7ee02b45d9bf72 /proxy/tests
parent27d1143ba62ebc2f6264757381e495548e79ebb4 (diff)
downloadgss-proxy-9fd4d3a355fefcf1c903502102e2e6407ae5f6dd.tar.gz
gss-proxy-9fd4d3a355fefcf1c903502102e2e6407ae5f6dd.tar.xz
gss-proxy-9fd4d3a355fefcf1c903502102e2e6407ae5f6dd.zip
interpostest: improve debug output when gss_context_time() fails.
Signed-off-by: Simo Sorce <simo@redhat.com>
Diffstat (limited to 'proxy/tests')
-rw-r--r--proxy/tests/interposetest.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/proxy/tests/interposetest.c b/proxy/tests/interposetest.c
index df0f353..c3ae89e 100644
--- a/proxy/tests/interposetest.c
+++ b/proxy/tests/interposetest.c
@@ -155,9 +155,12 @@ static int gptest_inq_context(gss_ctx_id_t ctx)
}
maj = gss_context_time(&min, ctx, &time_rec);
- if (maj == GSS_S_COMPLETE) {
- DEBUG("Context validity: %d sec.\n", time_rec);
+ if (maj) {
+ DEBUG("gss_context_time failed\n");
+ gp_log_failure(GSS_C_NO_OID, maj, min);
+ goto done;
}
+ DEBUG("Context validity: %d sec.\n", time_rec);
done:
(void)gss_release_buffer(&min, &sname);