summaryrefslogtreecommitdiffstats
path: root/src/bin/dhcp4/tests/dhcp4_client.cc
diff options
context:
space:
mode:
authorMarcin Siodelski <marcin@isc.org>2017-10-02 21:11:01 +0200
committerMarcin Siodelski <marcin@isc.org>2017-10-02 21:11:01 +0200
commit63d1838ceb0b00717d02984163f030805d7d4413 (patch)
tree6ca6156bfb983030eaced07c4adefb8bd1e7e2fd /src/bin/dhcp4/tests/dhcp4_client.cc
parent[5364] Implemented unit tests for shared network selection by iface id. (diff)
downloadkea-63d1838ceb0b00717d02984163f030805d7d4413.tar.xz
kea-63d1838ceb0b00717d02984163f030805d7d4413.zip
[5364] Extended v4 shared networks tests with checks for statistics.
Diffstat (limited to 'src/bin/dhcp4/tests/dhcp4_client.cc')
-rw-r--r--src/bin/dhcp4/tests/dhcp4_client.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/bin/dhcp4/tests/dhcp4_client.cc b/src/bin/dhcp4/tests/dhcp4_client.cc
index 131e72611c..c117ba4320 100644
--- a/src/bin/dhcp4/tests/dhcp4_client.cc
+++ b/src/bin/dhcp4/tests/dhcp4_client.cc
@@ -300,6 +300,9 @@ Dhcp4Client::doInform(const bool set_ciaddr) {
void
Dhcp4Client::doRelease() {
+ // There is no response for Release message.
+ context_.response_.reset();
+
if (config_.lease_.addr_.isV4Zero()) {
isc_throw(Dhcp4ClientError, "failed to send the release"
" message because client doesn't have a lease");