Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(812)

Unified Diff: openssl/crypto/objects/o_names.c

Issue 57833003: Fix lhash implementation to avoid unwanted resizes during iteration. (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/openssl@master
Patch Set: Update to latest upstream version of the patch + update README.Chromium Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « openssl/crypto/lhash/lhash.c ('k') | openssl/crypto/objects/obj_dat.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: openssl/crypto/objects/o_names.c
diff --git a/openssl/crypto/objects/o_names.c b/openssl/crypto/objects/o_names.c
index 4a548c2ed497581114210051090aa48e07197ad9..4e180452e85e7c7cbaf38b4798e4890e897b5fff 100644
--- a/openssl/crypto/objects/o_names.c
+++ b/openssl/crypto/objects/o_names.c
@@ -350,13 +350,9 @@ static void name_funcs_free(NAME_FUNCS *ptr)
void OBJ_NAME_cleanup(int type)
{
- unsigned long down_load;
-
if (names_lh == NULL) return;
free_type=type;
- down_load=lh_OBJ_NAME_down_load(names_lh);
- lh_OBJ_NAME_down_load(names_lh)=0;
lh_OBJ_NAME_doall(names_lh,LHASH_DOALL_FN(names_lh_free));
if (type < 0)
@@ -366,7 +362,5 @@ void OBJ_NAME_cleanup(int type)
names_lh=NULL;
name_funcs_stack = NULL;
}
- else
- lh_OBJ_NAME_down_load(names_lh)=down_load;
}
« no previous file with comments | « openssl/crypto/lhash/lhash.c ('k') | openssl/crypto/objects/obj_dat.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698