diff options
author | Sven Wegener <swegener@gentoo.org> | 2007-09-25 19:14:53 +0000 |
---|---|---|
committer | Sven Wegener <swegener@gentoo.org> | 2007-09-25 19:14:53 +0000 |
commit | 56e5ca467445e783b9309737cd409732d21c6bf1 (patch) | |
tree | 426879adf6f1da665303aa7e607c23c19af73799 /net-dns/avahi/files | |
parent | sparc stable wrt security #192096 (diff) | |
download | historical-56e5ca467445e783b9309737cd409732d21c6bf1.tar.gz historical-56e5ca467445e783b9309737cd409732d21c6bf1.tar.bz2 historical-56e5ca467445e783b9309737cd409732d21c6bf1.zip |
Include a patch from upstream that fixes a segfault.
Package-Manager: portage-2.1.3.9
Diffstat (limited to 'net-dns/avahi/files')
-rw-r--r-- | net-dns/avahi/files/avahi-0.6.21-no-browse-domains-segfault.patch | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/net-dns/avahi/files/avahi-0.6.21-no-browse-domains-segfault.patch b/net-dns/avahi/files/avahi-0.6.21-no-browse-domains-segfault.patch new file mode 100644 index 000000000000..0eca3329672f --- /dev/null +++ b/net-dns/avahi/files/avahi-0.6.21-no-browse-domains-segfault.patch @@ -0,0 +1,18 @@ +Don't segfault when no browse domains are configured in resolv.conf. Original patch from zml. Closes #162 + +Index: avahi-daemon/main.c +=================================================================== +--- avahi-daemon/main.c (revision 1524) ++++ avahi-daemon/main.c (revision 1525) +@@ -317,6 +317,11 @@ + int n; + char **p; + ++ if (!resolv_conf_search_domains) { ++ avahi_server_set_browse_domains(avahi_server, NULL); ++ return; ++ } ++ + l = avahi_string_list_copy(config.server_config.browse_domains); + + for (p = resolv_conf_search_domains, n = 0; *p && n < BROWSE_DOMAINS_MAX; p++, n++) { |