Update in Version Numbering
diff --git a/nlsr.c b/nlsr.c
index 3a9148b..6b55078 100644
--- a/nlsr.c
+++ b/nlsr.c
@@ -338,7 +338,6 @@
nlsr->in_content.p = &incoming_content;
nlsr->lsdb=(struct linkStateDatabase *)malloc(sizeof(struct linkStateDatabase *));
- //nlsr->lsdb->version=(char *)malloc(16);
nlsr->lsdb->version=0;
nlsr->lsdb->adj_lsdb = hashtb_create(sizeof(struct adj_lsa), ¶m_adj_lsdb);
diff --git a/nlsr_ndn.c b/nlsr_ndn.c
index c04decf..6d6a56c 100644
--- a/nlsr_ndn.c
+++ b/nlsr_ndn.c
@@ -432,12 +432,9 @@
for(i=0;i<adl_element;i++)
{
nbr=e->data;
-
- char *prefix=(char *)malloc(nbr->neighbor->length);
- memcpy(prefix,nbr->neighbor->name,nbr->neighbor->length);
- printf("Sending interest for name prefix:%s/%s/%s\n",prefix,nlsr_str,lsdb_str);
+ printf("Sending interest for name prefix:%s/%s/%s\n",nbr->neighbor->name,nlsr_str,lsdb_str);
name=ccn_charbuf_create();
- res=ccn_name_from_uri(name,prefix);
+ res=ccn_name_from_uri(name,nbr->neighbor->name);
ccn_name_append_str(name,nlsr_str);
ccn_name_append_str(name,lsdb_str);
//ccn_name_append_str(name,rnumstr);
@@ -474,10 +471,8 @@
ccn_charbuf_destroy(&c);
ccn_charbuf_destroy(&templ);
ccn_charbuf_destroy(&name);
- free(prefix);
- hashtb_next(e);
-
+ hashtb_next(e);
}
hashtb_end(e);