projects
/
l2tpns.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
b3f40f4
)
Fix cluster slave; reset to 0, the end of the session when the master version < slave...
author
fendo
<fendo@bi12info.com>
Fri, 12 Sep 2014 16:20:18 +0000
(18:20 +0200)
committer
fendo
<fendo@bi12info.com>
Fri, 12 Sep 2014 16:20:18 +0000
(18:20 +0200)
cluster.c
patch
|
blob
|
history
diff --git
a/cluster.c
b/cluster.c
index
12f9d58
..
5d2b5b8
100644
(file)
--- a/
cluster.c
+++ b/
cluster.c
@@
-1685,7
+1685,9
@@
static int cluster_process_heartbeat(uint8_t *data, int size, int more, uint8_t
if (size != sizeof(sessiont)) { // Ouch! Very very bad!
if ((hb_ver < HB_VERSION) && (size < sizeof(sessiont)))
{
if (size != sizeof(sessiont)) { // Ouch! Very very bad!
if ((hb_ver < HB_VERSION) && (size < sizeof(sessiont)))
{
- LOG(2, 0, 0, "WARNING: Received a CSESSION from %s hb_version %d != %d current version !\n", fmtaddr(addr, 2), hb_ver, HB_VERSION);
+ // set to 0 the unused variables
+ memset(&c[size], 0, (sizeof(sessiont) - size));
+ LOG(3, 0, 0, "WARNING: Received a CSESSION from %s hb_version %d != %d current version !\n", fmtaddr(addr, 2), hb_ver, HB_VERSION);
// New feature not activated until the master has not been upgraded.
}
else
// New feature not activated until the master has not been upgraded.
}
else