[Olsr-cvs] olsrd-current/src process_package.c,1.35,1.36
Andreas T�nnesen
(spam-protected)
Tue Nov 29 19:38:42 CET 2005
Update of /cvsroot/olsrd/olsrd-current/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22397
Modified Files:
process_package.c
Log Message:
Added checks for NULL returned from get_best_link_to_neighbor in the LQ code
Index: process_package.c
===================================================================
RCS file: /cvsroot/olsrd/olsrd-current/src/process_package.c,v
retrieving revision 1.35
retrieving revision 1.36
diff -C2 -d -r1.35 -r1.36
*** process_package.c 17 Nov 2005 04:25:44 -0000 1.35
--- process_package.c 29 Nov 2005 18:38:40 -0000 1.36
***************
*** 595,598 ****
--- 595,601 ----
link = get_best_link_to_neighbor(&neighbor->neighbor_main_addr);
+ if(!link)
+ continue;
+
// loop through the one-hop neighbors that see this
// two hop neighbour
More information about the Olsr-cvs
mailing list