mirror of
https://github.com/curl/curl.git
synced 2026-04-11 12:01:42 +08: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
@ -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…
Reference in New Issue
Block a user