Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Sebastian Schrader
Kea
Commits
d40a3b41
Commit
d40a3b41
authored
Nov 25, 2015
by
Francis Dupont
Browse files
[4097a] Added a no subnet check in buildCfgOptionList()
parent
95fd3715
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/bin/dhcp4/dhcp4_srv.cc
View file @
d40a3b41
...
...
@@ -827,7 +827,12 @@ Dhcpv4Srv::buildCfgOptionList(Dhcpv4Exchange& ex) {
// First subnet configured options
Subnet4Ptr
subnet
=
ex
.
getContext
()
->
subnet_
;
if
(
subnet
&&
!
subnet
->
getCfgOption
()
->
empty
())
{
if
(
!
subnet
)
{
// All methods using the CfgOptionList object return soon when
// there is no subnet so do the same
return
;
}
if
(
!
subnet
->
getCfgOption
()
->
empty
())
{
co_list
.
push_back
(
subnet
->
getCfgOption
());
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment