Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F161287590
D4813.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D4813.diff
View Options
Index: head/dns/dnsmasq/Makefile
===================================================================
--- head/dns/dnsmasq/Makefile
+++ head/dns/dnsmasq/Makefile
@@ -3,6 +3,7 @@
PORTNAME= dnsmasq
DISTVERSION= 2.75
+PORTREVISION= 1 # leave this in even if 0 to avoid PORTEPOCH bumps
PORTEPOCH= 1
CATEGORIES= dns ipv6
MASTER_SITES= http://www.thekelleys.org.uk/dnsmasq/ \
Index: head/dns/dnsmasq/files/patch-src_cache.c
===================================================================
--- head/dns/dnsmasq/files/patch-src_cache.c
+++ head/dns/dnsmasq/files/patch-src_cache.c
@@ -0,0 +1,11 @@
+--- src/cache.c.orig 2015-07-30 19:59:07 UTC
++++ src/cache.c
+@@ -481,7 +481,7 @@ struct crec *cache_insert(char *name, st
+ existing record is for an A or AAAA and
+ the record we're trying to insert is the same,
+ just drop the insert, but don't error the whole process. */
+- if ((flags & (F_IPV4 | F_IPV6)) && (flags & F_FORWARD))
++ if ((flags & (F_IPV4 | F_IPV6)) && (flags & F_FORWARD) && addr)
+ {
+ if ((flags & F_IPV4) && (new->flags & F_IPV4) &&
+ new->addr.addr.addr.addr4.s_addr == addr->addr.addr4.s_addr)
Index: head/dns/dnsmasq/files/patch-src_option.c
===================================================================
--- head/dns/dnsmasq/files/patch-src_option.c
+++ head/dns/dnsmasq/files/patch-src_option.c
@@ -0,0 +1,23 @@
+--- src/option.c.orig 2015-07-30 19:59:07 UTC
++++ src/option.c
+@@ -1501,10 +1501,16 @@ static int one_opt(int option, char *arg
+ li = opt_malloc(sizeof(struct list));
+ if (*arg == '*')
+ {
+- li->next = match_suffix;
+- match_suffix = li;
+- /* Have to copy: buffer is overwritten */
+- li->suffix = opt_string_alloc(arg+1);
++ /* "*" with no suffix is a no-op */
++ if (arg[1] == 0)
++ free(li);
++ else
++ {
++ li->next = match_suffix;
++ match_suffix = li;
++ /* Have to copy: buffer is overwritten */
++ li->suffix = opt_string_alloc(arg+1);
++ }
+ }
+ else
+ {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jul 3, 11:28 AM (21 h, 15 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34621643
Default Alt Text
D4813.diff (1 KB)
Attached To
Mode
D4813: Fix 2 possible crashes in dnsmasq
Attached
Detach File
Event Timeline
Log In to Comment