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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user