krb5 commit [krb5-1.14]: Fix leak in DB2 krb5_db_promote() implementation
Tom Yu
tlyu at mit.edu
Fri Sep 2 17:04:25 EDT 2016
https://github.com/krb5/krb5/commit/d583003e2fa404dec0cfd2d771c829c17636e0a7
commit d583003e2fa404dec0cfd2d771c829c17636e0a7
Author: Greg Hudson <ghudson at mit.edu>
Date: Tue Jun 28 18:09:35 2016 -0400
Fix leak in DB2 krb5_db_promote() implementation
In krb5_db2_merge_nra_iterator(), free the entry loaded from the
source DB.
(cherry picked from commit 0c5f74a25f226b2ea61a0ad7906a7c6605fc3533)
ticket: 8442
version_fixed: 1.14.4
src/plugins/kdb/db2/kdb_db2.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/src/plugins/kdb/db2/kdb_db2.c b/src/plugins/kdb/db2/kdb_db2.c
index 09d96d5..625a9d7 100644
--- a/src/plugins/kdb/db2/kdb_db2.c
+++ b/src/plugins/kdb/db2/kdb_db2.c
@@ -1396,6 +1396,7 @@ krb5_db2_merge_nra_iterator(krb5_pointer ptr, krb5_db_entry *entry)
retval = 0;
}
+ krb5_db_free_principal(nra->kcontext, s_entry);
return retval;
}
More information about the cvs-krb5
mailing list