summaryrefslogtreecommitdiff
path: root/server/failover.c
diff options
context:
space:
mode:
authorDavid Hankins <dhankins@isc.org>2009-04-07 19:55:52 +0000
committerDavid Hankins <dhankins@isc.org>2009-04-07 19:55:52 +0000
commit95fd7038a23f12f24ab375909cf9a1867e5c34b5 (patch)
treedacb1b9c05f619e89c0153603e50bfc8e460f25c /server/failover.c
parente6b3a140463ae2da8c891f1cbd86820f78da0c92 (diff)
downloadisc-dhcp-95fd7038a23f12f24ab375909cf9a1867e5c34b5.tar.gz
- Memory leak in the load_balance_mine() function is fixed. This would
leak ~20-30 octets per DHCPDISCOVER packet while failover was in use and in normal state. [ISC-Bugs #19548] - Various compilation fixes have been included for the memory related DEBUG #defines in includes/site.h. [ISC-Bugs #19548]
Diffstat (limited to 'server/failover.c')
-rw-r--r--server/failover.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/server/failover.c b/server/failover.c
index 5e1f3dff..3f4b2fb6 100644
--- a/server/failover.c
+++ b/server/failover.c
@@ -5729,6 +5729,8 @@ int load_balance_mine (struct packet *packet, dhcp_failover_state_t *state)
packet -> options, (struct option_state *)0,
&global_scope, oc, MDL)) {
hbaix = loadb_p_hash (ds.data, ds.len);
+
+ data_string_forget(&ds, MDL);
} else {
hbaix = loadb_p_hash (packet -> raw -> chaddr,
packet -> raw -> hlen);