Skip to content

Commit

Permalink
Fix regression in i2d_re_X509_REQ_tbs()
Browse files Browse the repository at this point in the history
This fixes regression from commit 8e39049. There is also no point
in setting the modified flag after just calling i2d.

Fixes #19297

Reviewed-by: Hugo Landau <hlandau@openssl.org>
Reviewed-by: David von Oheimb <david.von.oheimb@siemens.com>
(Merged from #19299)
  • Loading branch information
t8m committed Oct 5, 2022
1 parent 79c8dcf commit 928f15e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions crypto/x509/x509_req.c
Expand Up @@ -309,8 +309,6 @@ int i2d_re_X509_REQ_tbs(X509_REQ *req, unsigned char **pp)
ERR_raise(ERR_LIB_X509, ERR_R_PASSED_NULL_PARAMETER);
return 0;
}
if (!i2d_X509_REQ_INFO(&req->req_info, pp))
return 0;
req->req_info.enc.modified = 1;
return 1;
return i2d_X509_REQ_INFO(&req->req_info, pp);
}

0 comments on commit 928f15e

Please sign in to comment.