# HG changeset patch # User Christian Engelmayer # Date 1422456149 -28800 # Node ID 97d1e54941fd3cbcc0c84faa2f51fcd3ed57377e # Parent a4856155958405ac10e1eabac7c45c5d86350bcb When clearing the memory of 'key' in function openssh_read(), only the size of the pointer to the data instead of the whole size of struct openssh_key is cleared. Correct the size calculation as detected by Coverity CID 1191543. diff -r a48561559584 -r 97d1e54941fd keyimport.c --- a/keyimport.c Wed Jan 28 22:33:34 2015 +0800 +++ b/keyimport.c Wed Jan 28 22:42:29 2015 +0800 @@ -810,7 +810,7 @@ } m_burn(key->keyblob, key->keyblob_size); m_free(key->keyblob); - m_burn(key, sizeof(key)); + m_burn(key, sizeof(*key)); m_free(key); if (errmsg) { fprintf(stderr, "Error: %s\n", errmsg);