commit | f3e67ac1bc9f27f24d2deae0fe97142988ef6bff | [log] [tgz] |
---|---|---|
author | Bodo Möller <bodo@openssl.org> | Mon Aug 02 20:09:23 1999 +0000 |
committer | Bodo Möller <bodo@openssl.org> | Mon Aug 02 20:09:23 1999 +0000 |
tree | 0d4429adb3846058748d0752ef8623c56409f9c3 | |
parent | 927ddaffebd6c2df1d2f6838ecf7dec3bf253d5b [diff] [blame] |
fix previous modification -- if ssl->cert is NULL, don't follow the pointer.
diff --git a/ssl/ssl_lib.c b/ssl/ssl_lib.c index 0b30ccf..72b7e3a 100644 --- a/ssl/ssl_lib.c +++ b/ssl/ssl_lib.c
@@ -575,6 +575,8 @@ SSLerr(SSL_F_SSL_CHECK_PRIVATE_KEY,ERR_R_PASSED_NULL_PARAMETER); return(0); } + if (ssl->cert == NULL) + return 0; if (ssl->cert->key->x509 == NULL) { SSLerr(SSL_F_SSL_CHECK_PRIVATE_KEY,SSL_R_NO_CERTIFICATE_ASSIGNED);