mirror of
https://github.com/curl/curl.git
synced 2026-07-16 11:17:17 +03:00
x509asn1: fix to return error in an error case from encodeOID()
Found by Codex Security
Follow-up to d8b0318ad6 #3582
Closes #20991
This commit is contained in:
parent
59405ffb7d
commit
86c25c06c9
1 changed files with 1 additions and 1 deletions
|
|
@ -442,7 +442,7 @@ static CURLcode encodeOID(struct dynbuf *store,
|
|||
x = 0;
|
||||
do {
|
||||
if(x & 0xFF000000)
|
||||
return CURLE_OK;
|
||||
return CURLE_BAD_FUNCTION_ARGUMENT;
|
||||
else if(beg == end)
|
||||
return CURLE_BAD_FUNCTION_ARGUMENT;
|
||||
y = *(const unsigned char *)beg++;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue