Fixing incorrect memset.
Found when ENABLE_EXTERNAL_AUTH is enabled in chrome. TBR=ronghuawu@webrtc.org Review URL: https://webrtc-codereview.appspot.com/9909004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@5691 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
parent
dd5d804efb
commit
827faae0ec
@ -112,7 +112,7 @@ external_hmac_alloc(auth_t** a, int key_len, int out_len) {
|
||||
err_status_t
|
||||
external_hmac_dealloc(auth_t* a) {
|
||||
// Zeroize entire state
|
||||
memset((uint8_t *)a, sizeof(external_hmac_ctx_t) + sizeof(auth_t));
|
||||
memset((uint8_t *)a, 0, sizeof(external_hmac_ctx_t) + sizeof(auth_t));
|
||||
|
||||
// Free memory
|
||||
free(a);
|
||||
|
Loading…
x
Reference in New Issue
Block a user