summaryrefslogtreecommitdiffstats
path: root/crypto/x509/v3_addr.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/x509/v3_addr.c')
-rw-r--r--crypto/x509/v3_addr.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/crypto/x509/v3_addr.c b/crypto/x509/v3_addr.c
index db01072074..1340dbe5d2 100644
--- a/crypto/x509/v3_addr.c
+++ b/crypto/x509/v3_addr.c
@@ -972,6 +972,10 @@ static void *v2i_IPAddrBlocks(const struct v3_ext_method *method,
* the other input values.
*/
if (safi != NULL) {
+ if (val->value == NULL) {
+ ERR_raise(ERR_LIB_X509V3, X509V3_R_MISSING_VALUE);
+ goto err;
+ }
*safi = strtoul(val->value, &t, 0);
t += strspn(t, " \t");
if (*safi > 0xFF || *t++ != ':') {