From 620fb77d27bd4296b7268e083c050b6b25f2fb89 Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Sat, 22 Jul 2006 05:31:29 +0000 Subject: Be a bit more forgiving of whitespace. svn path=/openssl/trunk/crypto/x509v3/v3_asid.c; revision=47 --- openssl/trunk/crypto/x509v3/v3_asid.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'openssl/trunk/crypto/x509v3/v3_asid.c') diff --git a/openssl/trunk/crypto/x509v3/v3_asid.c b/openssl/trunk/crypto/x509v3/v3_asid.c index 9a3b6122..7fe5c852 100644 --- a/openssl/trunk/crypto/x509v3/v3_asid.c +++ b/openssl/trunk/crypto/x509v3/v3_asid.c @@ -23,6 +23,7 @@ */ #include +#include #include #include "cryptlib.h" #include @@ -402,7 +403,7 @@ static void *v2i_ASIdentifiers(struct v3_ext_method *method, } if ((s = strchr(val->value, '-')) == NULL) { max = NULL; - } else if ((max = s2i_ASN1_INTEGER(NULL, s + 1)) == NULL) { + } else if ((max = s2i_ASN1_INTEGER(NULL, s + strspn(s, "- \t"))) == NULL) { X509V3err(X509V3_F_V2I_ASIdentifiers, X509V3_R_INVALID_ASRANGE); X509V3_conf_err(val); goto err; -- cgit v1.2.3