projects
/
l2tpns.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
be29ef6
)
off by one
author
Brendan O'Dea
<bod@optus.net>
Wed, 9 Feb 2005 00:45:34 +0000
(
00:45
+0000)
committer
Brendan O'Dea
<bod@optus.net>
Wed, 9 Feb 2005 00:45:34 +0000
(
00:45
+0000)
l2tpns.c
patch
|
blob
|
history
diff --git
a/l2tpns.c
b/l2tpns.c
index
f006843
..
5ed1dce
100644
(file)
--- a/
l2tpns.c
+++ b/
l2tpns.c
@@
-4,7
+4,7
@@
// Copyright (c) 2002 FireBrick (Andrews & Arnold Ltd / Watchfront Ltd) - GPL licenced
// vim: sw=8 ts=8
// Copyright (c) 2002 FireBrick (Andrews & Arnold Ltd / Watchfront Ltd) - GPL licenced
// vim: sw=8 ts=8
-char const *cvs_id_l2tpns = "$Id: l2tpns.c,v 1.8
2 2005-02-09 00:16:17
bodea Exp $";
+char const *cvs_id_l2tpns = "$Id: l2tpns.c,v 1.8
3 2005-02-09 00:45:34
bodea Exp $";
#include <arpa/inet.h>
#include <assert.h>
#include <arpa/inet.h>
#include <assert.h>
@@
-3134,7
+3134,7
@@
static void initdata(int optdebug, char *optconfig)
memset(ip_address_pool, 0, sizeof(ippoolt) * MAXIPPOOL);
// Put all the sessions on the free list marked as undefined.
memset(ip_address_pool, 0, sizeof(ippoolt) * MAXIPPOOL);
// Put all the sessions on the free list marked as undefined.
- for (i = 1; i < MAXSESSION
- 1
; i++)
+ for (i = 1; i < MAXSESSION; i++)
{
session[i].next = i + 1;
session[i].tunnel = T_UNDEF; // mark it as not filled in.
{
session[i].next = i + 1;
session[i].tunnel = T_UNDEF; // mark it as not filled in.
@@
-3143,7
+3143,7
@@
static void initdata(int optdebug, char *optconfig)
sessionfree = 1;
// Mark all the tunnels as undefined (waiting to be filled in by a download).
sessionfree = 1;
// Mark all the tunnels as undefined (waiting to be filled in by a download).
- for (i = 1; i < MAXTUNNEL
- 1
; i++)
+ for (i = 1; i < MAXTUNNEL; i++)
tunnel[i].state = TUNNELUNDEF; // mark it as not filled in.
if (!*hostname)
tunnel[i].state = TUNNELUNDEF; // mark it as not filled in.
if (!*hostname)