summaryrefslogtreecommitdiffstats
path: root/proxy/src/mechglue/gpp_creds.c
diff options
context:
space:
mode:
Diffstat (limited to 'proxy/src/mechglue/gpp_creds.c')
-rw-r--r--proxy/src/mechglue/gpp_creds.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/proxy/src/mechglue/gpp_creds.c b/proxy/src/mechglue/gpp_creds.c
index 2818dd7..31ad9d4 100644
--- a/proxy/src/mechglue/gpp_creds.c
+++ b/proxy/src/mechglue/gpp_creds.c
@@ -183,9 +183,11 @@ OM_uint32 gppint_get_def_creds(OM_uint32 *minor_status,
/* Then try with remote */
if (behavior == GPP_REMOTE_ONLY || behavior == GPP_REMOTE_FIRST) {
- gssx_cred remote = {0};
+ gssx_cred remote;
gssx_cred *premote = NULL;
+ memset(&remote, 0, sizeof(gssx_cred));
+
/* We intentionally ignore failures as finding creds is optional */
maj = retrieve_remote_creds(&min, name ? name->remote : NULL, &remote);
if (maj == GSS_S_COMPLETE) {