fixed segfault at exits
diff --git a/nlsr_ndn.c b/nlsr_ndn.c
index f4a80cf..f05a90d 100644
--- a/nlsr_ndn.c
+++ b/nlsr_ndn.c
@@ -960,6 +960,9 @@
 {
 	printf("send_lsdb_interest called \n");	
 
+	if(flags == CCN_SCHEDULE_CANCEL)
+		return -1;
+
 	int i, adl_element;
 	struct ndn_neighbor *nbr;