Skip to content

Commit

Permalink
lib-master, auth: Fix clearing memory
Browse files Browse the repository at this point in the history
It doesn't look like these being wrong were causing any bugs.
  • Loading branch information
sirainen authored and cmouse committed Sep 14, 2018
1 parent 023d50f commit 5c44ba8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/auth/password-scheme-sodium.c
Expand Up @@ -38,7 +38,7 @@ generate_argon2id(const char *plaintext, const struct password_generate_params *
unsigned long long rounds = params->rounds;
size_t memlimit;
char result[crypto_pwhash_argon2id_STRBYTES];
i_zero(result);
i_zero(&result);

if (rounds == 0)
rounds = crypto_pwhash_argon2id_OPSLIMIT_INTERACTIVE;
Expand Down
2 changes: 1 addition & 1 deletion src/lib-master/master-service-haproxy.c
Expand Up @@ -301,7 +301,7 @@ master_service_haproxy_read(struct master_service_haproxy_conn *hpconn)
with the first recv() call.
*/
i_zero(&buf);
i_zero(rbuf);
i_zero(&rbuf);

/* see if there is a HAPROXY protocol command waiting */
if ((ret = master_service_haproxy_recv(fd, &buf, sizeof(buf), MSG_PEEK))<=0) {
Expand Down

0 comments on commit 5c44ba8

Please sign in to comment.