changeset 2947:9b59569aaea9

* src/net/dns.c: Initialise DNS domain with an empty string to avoid possible invalid memory access. Issue reported by Kirill Berezin.
author jld
date Fri, 23 Apr 2010 12:01:39 +0000
parents 418d34334c77
children 041821fb5427
files packages/redboot/current/ChangeLog packages/redboot/current/src/net/dns.c
diffstat 2 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/packages/redboot/current/ChangeLog
+++ b/packages/redboot/current/ChangeLog
@@ -1,3 +1,9 @@
+2010-04-23  John Dallaway  <john@dallaway.org.uk>
+
+	* src/net/dns.c: Initialise DNS domain with an empty string to
+	avoid possible invalid memory access. Issue reported by
+	Kirill Berezin.
+
 2009-06-24  Nick Garnett  <nickg@ecoscentric.com>
 
 	* cdl/redboot.cdl:
--- a/packages/redboot/current/src/net/dns.c
+++ b/packages/redboot/current/src/net/dns.c
@@ -76,7 +76,7 @@ RedBoot_config_option("DNS domain name",
                       dns_domain,
                       ALWAYS_ENABLED, true,
                       CONFIG_STRING,
-                      0
+                      ""
         );
 #endif