projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Just ignore wrong ADD_NODEs instead of replying with a DEL_NODE, in the
[tinc]
/
src
/
netutl.c
diff --git
a/src/netutl.c
b/src/netutl.c
index
0cf1e0b
..
1cf03c3
100644
(file)
--- a/
src/netutl.c
+++ b/
src/netutl.c
@@
-17,7
+17,7
@@
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- $Id: netutl.c,v 1.12.4.4
0 2002/06/21 10:11:12
guus Exp $
+ $Id: netutl.c,v 1.12.4.4
1 2002/06/21 17:49:48
guus Exp $
*/
#include "config.h"
*/
#include "config.h"
@@
-241,7
+241,7
@@
cp
i = masklen / 8;
masklen %= 8;
i = masklen / 8;
masklen %= 8;
- if(a[i++] & (0xff >> masklen))
+ if(
masklen &&
a[i++] & (0xff >> masklen))
return -1;
for(; i < len; i++)
return -1;
for(; i < len; i++)