diff options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/sha256.c | 3 | ||||
| -rw-r--r-- | lib/zclient.c | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/lib/sha256.c b/lib/sha256.c index a1b77901ee..e902021545 100644 --- a/lib/sha256.c +++ b/lib/sha256.c @@ -192,7 +192,8 @@ static void SHA256_Transform(uint32_t *state, const unsigned char block[64]) /* Clean the stack. */ memset(W, 0, 256); memset(S, 0, 32); - t0 = t1 = 0; + memset(t0, 0, sizeof(t0)); + memset(t1, 0, sizeof(t0)); } static unsigned char PAD[64] = { diff --git a/lib/zclient.c b/lib/zclient.c index e30f166dde..0b06dbacba 100644 --- a/lib/zclient.c +++ b/lib/zclient.c @@ -1619,7 +1619,7 @@ static int zclient_read_sync_response(struct zclient *zclient, u_int16_t expected_cmd) { struct stream *s; - u_int16_t size; + u_int16_t size = -1; u_char marker; u_char version; vrf_id_t vrf_id; |
