summaryrefslogtreecommitdiffstats
path: root/crypto/x509/v3_sxnet.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/x509/v3_sxnet.c')
-rw-r--r--crypto/x509/v3_sxnet.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/x509/v3_sxnet.c b/crypto/x509/v3_sxnet.c
index b9ddfe3244..74209d3e3f 100644
--- a/crypto/x509/v3_sxnet.c
+++ b/crypto/x509/v3_sxnet.c
@@ -204,6 +204,7 @@ int SXNET_add_id_INTEGER(SXNET **psx, ASN1_INTEGER *zone, const char *user,
ERR_raise(ERR_LIB_X509V3, ERR_R_CRYPTO_LIB);
goto err;
}
+ ASN1_INTEGER_free(id->zone);
id->zone = zone;
*psx = sx;
return 1;