]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
not a string...
authorYuri Schaeffer <yuri@nlnetlabs.nl>
Fri, 18 Oct 2013 15:17:00 +0000 (15:17 +0000)
committerYuri Schaeffer <yuri@nlnetlabs.nl>
Fri, 18 Oct 2013 15:17:00 +0000 (15:17 +0000)
git-svn-id: file:///svn/unbound/branches/edns-subnet@2991 be551aaa-1e26-0410-a405-d3ace91eadb9

edns-subnet/addrtree.c

index 3e4094432e1c630dd40b48ce6692993bbe2ea439..9ae0df3d422449c8886790555a7bc7f803de34aa 100644 (file)
@@ -77,13 +77,13 @@ node_create(struct addrtree *tree, void *elem, addrlen_t scope,
 
 /** Size in bytes of node and parent edge
  * @param tree: tree the node lives in
- * @param node: node which size must be calculated 
+ * @param n: node which size must be calculated 
  * @return size in bytes.
  **/
 static inline size_t 
 node_size(const struct addrtree *tree, const struct addrnode *n)
 {
-       return sizeof *n + sizeof *n->parent_edge + strlen(n->parent_edge->str) + 
+       return sizeof *n + sizeof *n->parent_edge + n->parent_edge->len + 
                (n->elem?tree->sizefunc(n->elem):0);
 }