diff options
-rw-r--r-- | src/openssl.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/openssl.c b/src/openssl.c index f8c5047..6b74025 100644 --- a/src/openssl.c +++ b/src/openssl.c | |||
@@ -5516,6 +5516,7 @@ static int xr_setExtensionByNid(lua_State *L, X509_REQ *csr, int target_nid, voi | |||
5516 | 5516 | ||
5517 | // Delete the old extensions attribute, so that the one we just added takes priority | 5517 | // Delete the old extensions attribute, so that the one we just added takes priority |
5518 | if (has_attrs) { | 5518 | if (has_attrs) { |
5519 | attr = NULL; | ||
5519 | for (pnid = X509_REQ_get_extension_nids(); *pnid != NID_undef; pnid++) { | 5520 | for (pnid = X509_REQ_get_extension_nids(); *pnid != NID_undef; pnid++) { |
5520 | idx = X509_REQ_get_attr_by_NID(csr, *pnid, -1); | 5521 | idx = X509_REQ_get_attr_by_NID(csr, *pnid, -1); |
5521 | if (idx == -1) | 5522 | if (idx == -1) |