diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2018-10-09 08:28:44 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2018-10-09 08:28:44 +0000 |
commit | bb3a16c8b310fd79166b8df8a6a53311513cb72e (patch) | |
tree | 9d3ef76cbd873d2e1dabe66bd4f77dc2c22e2110 /lib/libc/gen | |
parent | 3ceaea1d1c3edd9a71e35655386a3b95f9e7ebb3 (diff) |
Fix a "copy-and-paste" error that Coverity picked up in the augment code
This brings it back in line with the macros.
via Paco A. and the FRRouting project.
ok deraadt@ visa@ guenther@ tb@
Diffstat (limited to 'lib/libc/gen')
-rw-r--r-- | lib/libc/gen/tree.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/gen/tree.c b/lib/libc/gen/tree.c index e647a795dd7..964d8f0a250 100644 --- a/lib/libc/gen/tree.c +++ b/lib/libc/gen/tree.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tree.c,v 1.1 2017/06/19 03:06:26 dlg Exp $ */ +/* $OpenBSD: tree.c,v 1.2 2018/10/09 08:28:43 dlg Exp $ */ /* * Copyright 2002 Niels Provos <provos@citi.umich.edu> @@ -346,7 +346,7 @@ rbe_remove(const struct rb_type *t, struct rb_tree *rbt, struct rb_entry *rbe) else RBE_RIGHT(tmp) = rbe; - rbe_if_augment(t, parent); + rbe_if_augment(t, tmp); } else RBH_ROOT(rbt) = rbe; |