projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
use safer p_clear when possible.
[apps/madmutt.git]
/
imap
/
auth_cram.c
diff --git
a/imap/auth_cram.c
b/imap/auth_cram.c
index
e4ea149
..
2b8e130
100644
(file)
--- a/
imap/auth_cram.c
+++ b/
imap/auth_cram.c
@@
-149,8
+149,8
@@
static void hmac_md5 (const char *password, char *challenge,
else
strfcpy ((char *) secret, password, sizeof (secret));
-
memset (ipad, 0, sizeof (ipad)
);
-
memset (opad, 0, sizeof (opad)
);
+
p_clear(ipad, 1
);
+
p_clear(opad, 1
);
memcpy (ipad, secret, secret_len);
memcpy (opad, secret, secret_len);