diff options
author | Marc Horowitz <marc@mit.edu> | 1998-10-06 08:03:38 +0000 |
---|---|---|
committer | Marc Horowitz <marc@mit.edu> | 1998-10-06 08:03:38 +0000 |
commit | ca5b4dfda3050b775cfbc4f7809ddc3e2a4ee067 (patch) | |
tree | 3959fa9ec0675ea6195daa0303d1715f4296fa82 /src | |
parent | 506ad3d6dc6cee1e62b4e145f2cffd92740437b1 (diff) | |
download | krb5-ca5b4dfda3050b775cfbc4f7809ddc3e2a4ee067.zip krb5-ca5b4dfda3050b775cfbc4f7809ddc3e2a4ee067.tar.gz krb5-ca5b4dfda3050b775cfbc4f7809ddc3e2a4ee067.tar.bz2 |
print the string, then free it
git-svn-id: svn://anonsvn.mit.edu/krb5/branches/marc-3des@10968 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src')
-rw-r--r-- | src/clients/kvno/kvno.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/clients/kvno/kvno.c b/src/clients/kvno/kvno.c index caef52e..4fd81fe 100644 --- a/src/clients/kvno/kvno.c +++ b/src/clients/kvno/kvno.c @@ -104,21 +104,23 @@ int main(int argc, char *argv[]) krb5_free_principal(context, in_creds.server); if (ret) { - free(princ); - fprintf(stderr, "%s: %s while getting credentials\n", princ, error_message(ret)); + + free(princ); + errors++; continue; } /* we need a native ticket */ if (ret = decode_krb5_ticket(&out_creds->ticket, &ticket)) { + fprintf(stderr, "%s: %s while decoding ticket\n", + princ, error_message(ret)); + krb5_free_creds(context, out_creds); free(princ); - fprintf(stderr, "princ: %s while decoding ticket\n", - argv[i], error_message(ret)); errors++; continue; } |