krb5 commit: Fix uninitialized warning in client_init.c
Greg Hudson
ghudson at MIT.EDU
Sat Dec 21 11:41:47 EST 2013
https://github.com/krb5/krb5/commit/815565f918f2c64c59561dbe37efc251ddb67c22
commit 815565f918f2c64c59561dbe37efc251ddb67c22
Author: Greg Hudson <ghudson at mit.edu>
Date: Sat Dec 21 10:08:06 2013 -0500
Fix uninitialized warning in client_init.c
ticket: 7800
src/lib/kadm5/clnt/client_init.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/lib/kadm5/clnt/client_init.c b/src/lib/kadm5/clnt/client_init.c
index 9176de3..211bb55 100644
--- a/src/lib/kadm5/clnt/client_init.c
+++ b/src/lib/kadm5/clnt/client_init.c
@@ -507,6 +507,9 @@ gic_iter(kadm5_server_handle_t handle, enum init_type init_type,
krb5_free_principal(ctx, mcreds.server);
if (code)
goto error;
+ } else {
+ code = EINVAL;
+ goto error;
}
/* Steal the server principal of the creds we acquired and return it to the
More information about the cvs-krb5
mailing list