commit | 958ccf725f92467fa1be9a7e7dd96a409c6dcacd | [log] [tgz] |
---|---|---|
author | akmhoque <akmhoque@gmail.com> | Mon Feb 11 10:42:03 2013 -0600 |
committer | akmhoque <akmhoque@gmail.com> | Mon Feb 11 10:42:03 2013 -0600 |
tree | b6cd0315ffbcbb424285adcf28c801945ae2841e | |
parent | 5b39a438540dc0f0ea55f6b98ef651e4338f9f9f [diff] |
IP Address
diff --git a/nlsr.c b/nlsr.c index df637b7..20c7d45 100644 --- a/nlsr.c +++ b/nlsr.c
@@ -179,7 +179,8 @@ if (rem != NULL ) { nbr_ip_addr=strtok_r(NULL,sep,&rem); - is_ip_configured=1; + if ( nbr_ip_addr != NULL) + is_ip_configured=1; } struct name_prefix *nbr=(struct name_prefix *)malloc(sizeof(struct name_prefix )); nbr->name=(char *)malloc(strlen(rtr_name)+1);