Shoulda left the >= as >=, not >, in join_nodes. D'oh.

This commit is contained in:
David Lawrence 1999-05-07 02:47:35 +00:00
parent 56b657bfe8
commit 3c5de27363

View file

@ -15,7 +15,7 @@
* SOFTWARE.
*/
/* $Id: rbt.c,v 1.51 1999/05/07 02:42:50 tale Exp $ */
/* $Id: rbt.c,v 1.52 1999/05/07 02:47:35 tale Exp $ */
/* Principal Authors: DCL */
@ -1292,7 +1292,7 @@ join_nodes(dns_rbt_t *rbt,
*/
newlength = newname->length + newname->labels;
oldlength = NAMELEN(down) + OFFSETLEN(down);
if (newlength > oldlength + PADBYTES(down))
if (newlength >= oldlength + PADBYTES(down))
result = create_node(rbt->mctx, newname, &newnode);
else {