removed bad free of global data

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1499 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1997-03-26 23:09:57 +00:00
parent 338fea9082
commit d25630601b

View File

@@ -232,7 +232,6 @@ has_an_otp(char *user)
ctx.user = user;
ret = otp_simple_get(db, &ctx);
if (!ret) free(ctx.alg);
otp_db_close (db);
return !ret;
@@ -251,7 +250,6 @@ print_otp_entry_for_name (void *db, char *user)
if (!otp_simple_get(db, &ctx)) {
fprintf(stdout, "%s\totp-%s %d %s\n",
ctx.user, ctx.alg->name, ctx.n, ctx.seed);
free(ctx.alg);
}
}