]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
review comments. updated ldns tarball with 1.6.2.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Wed, 11 Nov 2009 16:18:38 +0000 (16:18 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Wed, 11 Nov 2009 16:18:38 +0000 (16:18 +0000)
git-svn-id: file:///svn/unbound/trunk@1898 be551aaa-1e26-0410-a405-d3ace91eadb9

doc/Changelog
ldns-src.tar.gz
testcode/replay.c
testcode/replay.h
util/config_file.c
util/net_help.c

index 681f88ed4f3463407ab76b5b603c3c5dd2b923e2..354c8ab3841c9a86b88520b88e026c9850ae21e8 100644 (file)
@@ -1,3 +1,7 @@
+11 November 2009: Wouter
+       - ldns tarball updated (to 1.6.2).
+       - review comments.
+
 10 November 2009: Wouter
        - Thanks to Surfnet found bug in new dnssec-retry code that failed
          to combine well when combined with DLV and a particular failure. 
index 34738bcd66b5c109d18a1db40da9d1cdc205b79d..0236ddee64a8a67db7ef50a4750c816dfd7c56b8 100644 (file)
Binary files a/ldns-src.tar.gz and b/ldns-src.tar.gz differ
index 78dcbe5c51c8c8ac9d7eafa01f33f9fb08ba59b9..03f5781f3cc6f7bfd5bc8b5bbe9fe3b63d7f3f2e 100644 (file)
@@ -243,7 +243,7 @@ read_assign_step(char* remain, struct replay_moment* mom)
                fatal_exit("cannot parse assign: %s", remain);
        mom->variable = strdup(buf);
        if(eq != '=')
-               fatal_exit("no = in assign: %s", remain);
+               fatal_exit("no '=' in assign: %s", remain);
        remain += skip;
        if(remain[0]) remain[strlen(remain)-1]=0; /* remove newline */
        mom->string = strdup(remain);
@@ -308,7 +308,8 @@ replay_moment_read(char* remain, FILE* in, const char* name, int* lineno,
                                remain++;
                        mom->string = strdup(remain);
                        if(!mom->string) fatal_exit("out of memory");
-                       mom->string[strlen(mom->string)-1]=0;
+                       if(strlen(mom->string)>0)
+                               mom->string[strlen(mom->string)-1]=0;
                        remain += strlen(mom->string);
                }
        } else if(parse_keyword(&remain, "CHECK_AUTOTRUST")) {
index b065a624f88a0faa4df35e00330896930823ca34..dcc0d02fa6fb4c9900e7347b9e367d4293c8706d 100644 (file)
@@ -88,7 +88,7 @@
  *     o number is that number.
  *     o ${variables and arithmetic }
  *     o +, -, / and *.  Note, evaluated left-to-right. Use ${} for brackets.
- *       So again, no precedence rules, so 2+3*4 === ${2+3}*4 === 20.
+ *       So again, no precedence rules, so 2+3*4 == ${2+3}*4 = 20.
  *       Do 2+${3*4} to get 24.
  *     o ${function params}
  *             o ${time} is the current time for the simulated unbound.
index 36e8327302dc4d9d5b6b945fa81ac9db600c11aa..3b01f815e92d0b882a06590bc437a42b9f733a4d 100644 (file)
@@ -1144,7 +1144,7 @@ void errinf_origin(struct module_qstate* qstate, struct sock_list *origin)
                char buf[256];
                if(p == origin)
                        snprintf(buf, sizeof(buf), "from ");
-               else    snprintf(buf, sizeof(buf), "and from ");
+               else    snprintf(buf, sizeof(buf), "and ");
                if(p->len == 0)
                        snprintf(buf+strlen(buf), sizeof(buf)-strlen(buf), 
                                "cache");
index 204995eadc0a3bd05c817c3504c43f9652af2175..d2e7fcca16a75627940d2c9575e832335d0fc9ec 100644 (file)
@@ -506,7 +506,7 @@ void sock_list_insert(struct sock_list** list, struct sockaddr_storage* addr,
        add->next = *list;
        add->len = len;
        *list = add;
-       if(len) memcpy(&add->addr, addr, len);
+       if(len) memmove(&add->addr, addr, len);
 }
 
 void sock_list_prepend(struct sock_list** list, struct sock_list* add)