Validity Checking in nlsr-sync
diff --git a/nlsr_adl.c b/nlsr_adl.c
index 042466a..6e96d7b 100644
--- a/nlsr_adl.c
+++ b/nlsr_adl.c
@@ -58,8 +58,8 @@
 		nbr->metric=LINK_METRIC;
 		nbr->is_lsdb_send_interest_scheduled=0;
 		
-		nbr->ip_address=(char *)malloc(13);
-		memset(nbr->ip_address,0,13);
+		nbr->ip_address=(char *)malloc(strlen(ip)+1);
+		memset(nbr->ip_address,0,strlen(ip)+1);
 		memcpy(nbr->ip_address,ip,strlen(ip));
 
 		char *time_stamp=(char *)malloc(20);