2
0
mirror of https://gitlab.isc.org/isc-projects/dhcp synced 2025-08-22 01:49:35 +00:00

[master] Fix a memory leak in the v6 version of the client code

Squashed commit of the following:

commit 70bc20ffb6bd21793d2fb4f945ef9f16619df46f
Author: Shawn Routhier <sar@isc.org>
Date:   Tue Oct 20 12:18:01 2015 -0700

    [rt40990] Fix a memory leak in the v6 version of the client code
This commit is contained in:
Shawn Routhier 2015-10-20 20:08:05 -07:00
parent 555093daef
commit 18ba0ff38c
2 changed files with 10 additions and 0 deletions

View File

@ -103,6 +103,10 @@ by Eric Young (eay@cryptsoft.com).
he provided.
[ISC-Bugs #38396]
- Fix a small memory leak in the DHCPv6 version of the client code.
This is unlikely to cause significant issues in actual use.
[ISC-Bugs #40990]
Changes since 4.3.3b1
- None

View File

@ -418,6 +418,12 @@ valid_reply(struct packet *packet, struct client_state *client)
rval = ISC_FALSE;
}
/* clean up pointers to the strings */
if (sid.data != NULL)
data_string_forget(&sid, MDL);
if (cid.data != NULL)
data_string_forget(&cid, MDL);
return rval;
}