summaryrefslogtreecommitdiff
path: root/accel-pppd
diff options
context:
space:
mode:
authorGuillaume Nault <g.nault@alphalink.fr>2013-06-26 20:49:48 +0200
committerDmitry Kozlov <xeb@mail.ru>2013-06-29 15:01:08 +0400
commit97f48a155a49e370a5db25dcdbb61dfb6b084382 (patch)
treec92b0e5b5f7557facf37024c99f0711033b7c190 /accel-pppd
parenta7ab20b5ff328aadcc20e84d740958c5a1127dc8 (diff)
downloadaccel-ppp-97f48a155a49e370a5db25dcdbb61dfb6b084382.tar.gz
accel-ppp-97f48a155a49e370a5db25dcdbb61dfb6b084382.zip
connlimit: Initialise connlimit key (MAC)
Initialise 'key' before calling memcpy() to ensure that all bytes are set in the return value. Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
Diffstat (limited to 'accel-pppd')
-rw-r--r--accel-pppd/include/connlimit.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/accel-pppd/include/connlimit.h b/accel-pppd/include/connlimit.h
index a5645ee2..8711cf8b 100644
--- a/accel-pppd/include/connlimit.h
+++ b/accel-pppd/include/connlimit.h
@@ -11,7 +11,7 @@ static inline uint64_t cl_key_from_mac(uint8_t hw[6])
union {
uint8_t hw[6];
uint64_t key;
- } key;
+ } key = {{ 0 }};
memcpy(key.hw, hw, sizeof(key.hw));