Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
D
Dnsmasq
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
Dnsmasq
Commits
53c4c5c8
Commit
53c4c5c8
authored
Oct 18, 2013
by
René van Dorst
Committed by
Simon Kelley
Oct 18, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix crash at startup when dhcp-host with client-ids is present.
parent
dc27e148
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
src/dhcp-common.c
src/dhcp-common.c
+3
-2
No files found.
src/dhcp-common.c
View file @
53c4c5c8
...
...
@@ -315,8 +315,9 @@ struct dhcp_config *find_config(struct dhcp_config *configs,
return
config
;
/* dhcpcd prefixes ASCII client IDs by zero which is wrong, but we try and
cope with that here */
if
(
!
(
context
->
flags
&
CONTEXT_V6
)
&&
*
clid
==
0
&&
config
->
clid_len
==
clid_len
-
1
&&
cope with that here. This is IPv4 only. context==NULL implies IPv4,
see lease_update_from_configs() */
if
((
!
context
||
!
(
context
->
flags
&
CONTEXT_V6
))
&&
*
clid
==
0
&&
config
->
clid_len
==
clid_len
-
1
&&
memcmp
(
config
->
clid
,
clid
+
1
,
clid_len
-
1
)
==
0
&&
is_config_in_context
(
context
,
config
))
return
config
;
...
...
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