hash table BUGFIX use new return values
diff --git a/src/hash_table.c b/src/hash_table.c
index 6473a61..18ff2c3 100644
--- a/src/hash_table.c
+++ b/src/hash_table.c
@@ -196,12 +196,12 @@
LOGDBG(LY_LDGDICT, "inserting \"%s\"", rec.value);
ret = lyht_insert(ctx->dict.hash_tab, (void *)&rec, hash, (void **)&match);
- if (ret == 1) {
+ if (ret == LY_EEXIST) {
match->refcount++;
if (zerocopy) {
free(value);
}
- } else if (ret == 0) {
+ } else if (ret == LY_SUCCESS) {
if (!zerocopy) {
/*
* allocate string for new record