diff options
author | Simon Kelley <simon@thekelleys.org.uk> | 2013-02-19 16:47:07 +0000 |
---|---|---|
committer | Simon Kelley <simon@thekelleys.org.uk> | 2013-02-19 16:47:07 +0000 |
commit | 4038ae200598b47b8a93a87981cdf851bc1bf757 (patch) | |
tree | 044f918fc89d23864752ee51ce9ac6a794f49845 | |
parent | dd1721c79954f3d5a728d242d37dd45761c566ed (diff) | |
download | dnsmasq-4038ae200598b47b8a93a87981cdf851bc1bf757.tar.gz |
Fix crash in DHCPv6 information-request handler.v2.66test16
-rw-r--r-- | CHANGELOG | 5 | ||||
-rw-r--r-- | src/rfc3315.c | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -38,6 +38,11 @@ version 2.66 agent. Thanks to Lakefield Communications for providing a bounty for this addition. + Fixed crash, introduced in 2.64, whilst handling DHCPv6 + information-requests with some common configurations. + Thanks to Robert M. Albrecht for the bug report and + chasing the problem. + version 2.65 Fix regression which broke forwarding of queries sent via diff --git a/src/rfc3315.c b/src/rfc3315.c index 75ec06b..785a426 100644 --- a/src/rfc3315.c +++ b/src/rfc3315.c @@ -1027,7 +1027,7 @@ static int dhcp6_no_relay(int msg_type, struct in6_addr *link_address, struct dh { /* We can't discriminate contexts based on address, as we don't know it. If there is only one possible context, we can use its tags */ - if (context && !context->current) + if (context && context->netid.net && !context->current) { context->netid.next = NULL; context_tags = &context->netid; |