summaryrefslogtreecommitdiff
path: root/omapip/hash.c
diff options
context:
space:
mode:
authorDavid Hankins <dhankins@isc.org>2005-09-30 17:57:32 +0000
committerDavid Hankins <dhankins@isc.org>2005-09-30 17:57:32 +0000
commit06e77c34fb9817079c106c94e8f15b2a78c99281 (patch)
tree4effcf2103092b19a436fd4a3228ea134c1a067c /omapip/hash.c
parentc75473d8001ba93461a611ba2d797cf144ab1a54 (diff)
downloadisc-dhcp-06e77c34fb9817079c106c94e8f15b2a78c99281.tar.gz
Corrections to changes made on HEAD pursuant to review of changes between
V3.0.3 and HEAD. [ISC-Bugs #15348]
Diffstat (limited to 'omapip/hash.c')
-rw-r--r--omapip/hash.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/omapip/hash.c b/omapip/hash.c
index 3031ad9a..1bd5e124 100644
--- a/omapip/hash.c
+++ b/omapip/hash.c
@@ -34,7 +34,7 @@
#ifndef lint
static char copyright[] =
-"$Id: hash.c,v 1.5 2005/03/17 20:15:22 dhankins Exp $ Copyright (c) 2004 Internet Systems Consortium. All rights reserved.\n";
+"$Id: hash.c,v 1.6 2005/09/30 17:57:32 dhankins Exp $ Copyright (c) 2004 Internet Systems Consortium. All rights reserved.\n";
#endif /* not lint */
#include <omapip/omapip_p.h>
@@ -380,7 +380,9 @@ int hash_foreach (struct hash_table *table, hash_foreach_func func)
bp = table -> buckets [i];
while (bp) {
next = bp -> next;
- (*func) (bp -> name, bp -> len, bp -> value);
+ if ((*func)(bp->name, bp->len, bp->value)
+ != ISC_R_SUCCESS)
+ return count;
bp = next;
count++;
}