projects
/
freeradius.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f3a0d66
)
Fix node comparison on delete
author
Alan T. DeKok
<aland@freeradius.org>
Wed, 14 Apr 2010 02:59:26 +0000
(
04:59
+0200)
committer
Alan T. DeKok
<aland@freeradius.org>
Wed, 14 Apr 2010 08:52:48 +0000
(10:52 +0200)
This could be the cause of bug #35.
src/lib/hash.c
patch
|
blob
|
history
diff --git
a/src/lib/hash.c
b/src/lib/hash.c
index
0780259
..
b7bbf09
100644
(file)
--- a/
src/lib/hash.c
+++ b/
src/lib/hash.c
@@
-243,14
+243,7
@@
static int list_delete(fr_hash_table_t *ht,
last = head;
for (cur = *head; cur != &ht->null; cur = cur->next) {
- if (cur == node) {
- if (ht->cmp) {
- int cmp = ht->cmp(node->data, cur->data);
- if (cmp > 0) break;
- if (cmp < 0) continue;
- }
- break;
- }
+ if (cur == node) break;
last = &(cur->next);
}