mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-15 21:59:41 -04:00
BUG/MINOR: ssl/ocsp: check chunk_strcpy() in ssl_ocsp_get_uri_from_cert()
Check the return value of chunk_strcpy() in ssl_ocsp_get_uri_from_cert(). Should fix issue #1975.
This commit is contained in:
parent
c8d814ed63
commit
8bc00f8bdc
1 changed files with 4 additions and 1 deletions
|
|
@ -590,7 +590,10 @@ int ssl_ocsp_get_uri_from_cert(X509 *cert, struct buffer *out, char **err)
|
|||
goto end;
|
||||
}
|
||||
|
||||
chunk_strcpy(out, sk_OPENSSL_STRING_value(ocsp_uri_stk, 0));
|
||||
if (!chunk_strcpy(out, sk_OPENSSL_STRING_value(ocsp_uri_stk, 0))) {
|
||||
memprintf(err, "%sOCSP URI too long!\n", *err ? *err : "");
|
||||
goto end;
|
||||
}
|
||||
if (b_data(out) == 0) {
|
||||
memprintf(err, "%sNo OCSP URL!\n", *err ? *err : "");
|
||||
goto end;
|
||||
|
|
|
|||
Loading…
Reference in a new issue