diff options
author | Guillaume Nault <g.nault@alphalink.fr> | 2013-06-26 20:49:48 +0200 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2013-06-29 15:01:08 +0400 |
commit | 97f48a155a49e370a5db25dcdbb61dfb6b084382 (patch) | |
tree | c92b0e5b5f7557facf37024c99f0711033b7c190 | |
parent | a7ab20b5ff328aadcc20e84d740958c5a1127dc8 (diff) | |
download | accel-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>
-rw-r--r-- | accel-pppd/include/connlimit.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/accel-pppd/include/connlimit.h b/accel-pppd/include/connlimit.h index a5645ee..8711cf8 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)); |