Remove all guards for calls to OpenSSL free functions - all of these
authorjsing <jsing@openbsd.org>
Wed, 7 Feb 2018 02:06:50 +0000 (02:06 +0000)
committerjsing <jsing@openbsd.org>
Wed, 7 Feb 2018 02:06:50 +0000 (02:06 +0000)
commite7fab504cc56b1bcad841564992d71bf5f905dce
treeb0d1b6c09c41af3c4dab09021a9275e15dc4a65f
parent46451fea80d892cfa50d51d7237711d69f6eee5c
Remove all guards for calls to OpenSSL free functions - all of these
functions handle NULL, from at least OpenSSL 1.0.1g onwards.

Prompted by dtucker@ asking about guards for RSA_free(), when looking at
openssh-portable pr#84 on github.

ok deraadt@ dtucker@
13 files changed:
usr.bin/ssh/cipher.c
usr.bin/ssh/dh.c
usr.bin/ssh/kex.c
usr.bin/ssh/kexdhc.c
usr.bin/ssh/kexdhs.c
usr.bin/ssh/kexecdhc.c
usr.bin/ssh/kexecdhs.c
usr.bin/ssh/kexgexc.c
usr.bin/ssh/kexgexs.c
usr.bin/ssh/ssh-dss.c
usr.bin/ssh/ssh-ecdsa.c
usr.bin/ssh/ssh-pkcs11.c
usr.bin/ssh/sshkey.c