commit | 018692c417579ddbb51fb5fcdeec5de12b340baf | [log] [tgz] |
---|---|---|
author | akmhoque <akmhoque@gmail.com> | Mon Feb 11 11:33:39 2013 -0600 |
committer | akmhoque <akmhoque@gmail.com> | Mon Feb 11 11:33:39 2013 -0600 |
tree | ecb1367fd639e4ffce730e2ac63c555a519a4ce3 | |
parent | 958ccf725f92467fa1be9a7e7dd96a409c6dcacd [diff] [blame] |
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);