← Commit list

86c25c06c9

Viktor Szakats
Viktor Szakats
2026-03-19
SUCCESS Duration: 264s

Subject

x509asn1: fix to return error in an error case from `encodeOID()`

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

lib/vtls/x509asn1.c+1 -1
@@ -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++;