Author: breser
Date: Fri Aug 22 16:52:52 2014
New Revision: 1619861
URL: http://svn.apache.org/r1619861
Log:
On svn-auth-x509 branch, don't crash on v1/2 certs.
* subversion/libsvn_subr/x509parse.c
(x509parse_get_hostnames): Check for NULL, since v1/2 certs don't have
extensions.
Reported by: philip
Modified:
subversion/branches/svn-auth-x509/subversion/libsvn_subr/x509parse.c
Modified: subversion/branches/svn-auth-x509/subversion/libsvn_subr/x509parse.c
URL:
http://svn.apache.org/viewvc/subversion/branches/svn-auth-x509/subversion/libsvn_subr/x509parse.c?rev=1619861&r1=1619860&r2=1619861&view=diff
==============================================================================
--- subversion/branches/svn-auth-x509/subversion/libsvn_subr/x509parse.c
(original)
+++ subversion/branches/svn-auth-x509/subversion/libsvn_subr/x509parse.c Fri
Aug 22 16:52:52 2014
@@ -1009,7 +1009,7 @@ static void
x509parse_get_hostnames(apr_array_header_t **names, x509_cert *crt,
apr_pool_t *result_pool, apr_pool_t *scratch_pool)
{
- if (crt->dnsnames->nelts > 0)
+ if (crt->dnsnames && crt->dnsnames->nelts > 0)
{
int i;