Module: kamailio Branch: 4.3 Commit: 33939d102b836e440915ce958e90cef36aafec2d URL: https://github.com/kamailio/kamailio/commit/33939d102b836e440915ce958e90cef36aafec2d
Author: Daniel-Constantin Mierla <[email protected]> Committer: Daniel-Constantin Mierla <[email protected]> Date: 2015-09-22T23:07:11+02:00 domain: proper memset of the hash tables used by domain at init time - discovered on a report by Juha Heinanen (cherry picked from commit 82f74a57229e46e9b9302a6b4caebed6860c47ed) --- Modified: modules/domain/domain_mod.c --- Diff: https://github.com/kamailio/kamailio/commit/33939d102b836e440915ce958e90cef36aafec2d.diff Patch: https://github.com/kamailio/kamailio/commit/33939d102b836e440915ce958e90cef36aafec2d.patch --- diff --git a/modules/domain/domain_mod.c b/modules/domain/domain_mod.c index 81f3091..1d567a0 100644 --- a/modules/domain/domain_mod.c +++ b/modules/domain/domain_mod.c @@ -210,9 +210,9 @@ static int mod_init(void) goto error; } memset(hash_table_1, 0, sizeof(struct domain_list *) * - DOM_HASH_SIZE + 1); + (DOM_HASH_SIZE + 1)); memset(hash_table_2, 0, sizeof(struct domain_list *) * - DOM_HASH_SIZE + 1); + (DOM_HASH_SIZE + 1)); *hash_table = hash_table_1; /* Allocate and initialize locks */ _______________________________________________ sr-dev mailing list [email protected] http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev
