(create_random_entry): free the entry
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5757 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 1998 Kungliga Tekniska H<>gskolan
|
||||
* Copyright (c) 1997, 1998, 1999 Kungliga Tekniska H<>gskolan
|
||||
* (Royal Institute of Technology, Stockholm, Sweden).
|
||||
* All rights reserved.
|
||||
*
|
||||
@@ -78,6 +78,7 @@ create_random_entry(krb5_principal princ, time_t max_life, time_t max_rlife,
|
||||
ent.kvno = 1;
|
||||
ret = kadm5_modify_principal(kadm_handle, &ent,
|
||||
KADM5_ATTRIBUTES|KADM5_KVNO);
|
||||
kadm5_free_principal_ent (kadm_handle, &ent);
|
||||
if(ret)
|
||||
return ret;
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user