| commit | 4675a56a3ce2bef715386e45036426c8a4329d39 | [log] [tgz] |
|---|---|---|
| author | Vitezslav Cizek <vcizek@suse.com> | Thu Nov 24 13:21:41 2016 +0100 |
| committer | Rich Salz <rsalz@openssl.org> | Sat Nov 26 20:09:12 2016 -0500 |
| tree | 97fbde62e3be07c4b1d74c356eaedc1a12b7c5d4 | |
| parent | edfca4e3daab653ec6db79ef1b01762db7ba1a52 [diff] |
apps/speed.c: Fix crash when config loading fails Move rsa_key initialization in front of load_config(). If loading the config fails, rsa_key isn't initialized and may cause invalid free() in the end: cleanup. Remove superfluous memset. Reviewed-by: Andy Polyakov <appro@openssl.org> Reviewed-by: Rich Salz <rsalz@openssl.org> (cherry picked from commit c003851783ed05e3fd5296786e1f8f6a63dc4f31)