bc46db60f1
Add an extra NULL dereference check Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
The stuff in here is based on patches supplied to me by Steven Schoch <schoch@sheba.arc.nasa.gov> to do DSS. I have since modified a them a little but a debt of gratitude is due for doing the initial work.