summaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorGreg Hudson <ghudson@mit.edu>2013-12-21 10:08:06 -0500
committerGreg Hudson <ghudson@mit.edu>2013-12-21 10:08:06 -0500
commit815565f918f2c64c59561dbe37efc251ddb67c22 (patch)
tree97b414acf1a598bcae9a5582b0551cf698266962 /src/lib
parent5341cfde2b3e607e294bb0d057dc3540172a8b1b (diff)
downloadkrb5-815565f918f2c64c59561dbe37efc251ddb67c22.tar.gz
krb5-815565f918f2c64c59561dbe37efc251ddb67c22.tar.xz
krb5-815565f918f2c64c59561dbe37efc251ddb67c22.zip
Fix uninitialized warning in client_init.c
ticket: 7800
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/kadm5/clnt/client_init.c3
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 9176de37b0..211bb555dd 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