The following commit has been merged in the master branch: commit a7b018f29b3f879b474205d26a973007051bd591 Author: Marek Lindner lindner_marek@yahoo.de Date: Mon Feb 5 18:03:03 2007 +0100
code cleanup
diff --git a/batman.c b/batman.c index 7e7c72b..96685ae 100644 --- a/batman.c +++ b/batman.c @@ -404,7 +404,7 @@ static void update_routes( struct orig_node *orig_node, struct neigh_node *neigh orig_node->hna_buff = debugMalloc( hna_buff_len, 3 ); orig_node->hna_buff_len = hna_buff_len;
- if ( memcmp( orig_node->hna_buff, hna_recv_buff, hna_buff_len ) != 0 ) + if ( ( orig_node->hna_buff_len == 0 ) || ( memcmp( orig_node->hna_buff, hna_recv_buff, hna_buff_len ) != 0 ) ) memmove( orig_node->hna_buff, hna_recv_buff, hna_buff_len );
add_del_hna( orig_node, 0 );