update
diff --git a/nlsr.c b/nlsr.c
index 6655558..3895e5f 100644
--- a/nlsr.c
+++ b/nlsr.c
@@ -250,14 +250,17 @@
hashtb_start(nlsr->npl, e);
res = hashtb_seek(e, np->name, strlen(np->name), 0);
- assert(res == HT_NEW_ENTRY);
+ if(res == HT_NEW_ENTRY)
+ {
- hnp = e->data;
- hnp->name=(char *)malloc(np->length);
- memcpy(hnp->name,np->name,np->length);
- hnp->length=np->length;
+ hnp = e->data;
+ hnp->name=(char *)malloc(np->length);
+ memcpy(hnp->name,np->name,np->length);
+ hnp->length=np->length;
+ }
+
+ hashtb_end(e);
- hashtb_end(e);
printf("\n");