diff options
Diffstat (limited to 'src/lib/dhcpsrv/sanity_checker.cc')
-rw-r--r-- | src/lib/dhcpsrv/sanity_checker.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/dhcpsrv/sanity_checker.cc b/src/lib/dhcpsrv/sanity_checker.cc index 1de927c875..6e512d09ed 100644 --- a/src/lib/dhcpsrv/sanity_checker.cc +++ b/src/lib/dhcpsrv/sanity_checker.cc @@ -1,4 +1,4 @@ -// Copyright (C) 2018 Internet Systems Consortium, Inc. ("ISC") +// Copyright (C) 2018-2019 Internet Systems Consortium, Inc. ("ISC") // // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this @@ -26,6 +26,11 @@ void SanityChecker::checkLease(Lease4Ptr& lease, bool current) { } void SanityChecker::checkLease(Lease6Ptr& lease, bool current) { + // We only check IA_NAs currently. + if (lease->type_ != Lease::TYPE_NA) { + return; + } + SrvConfigPtr cfg; if (current) { cfg = CfgMgr::instance().getCurrentCfg(); |