← Commit list

cda0268593

Daniel Stenberg
Daniel Stenberg
2026-05-08
SUCCESS Duration: 614s

Subject

x509asn1: fix operator order in do_pubkey

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
@@ -1013,7 +1013,7 @@ static int do_pubkey(struct Curl_easy *data, int certnum, const char *algo,
return 1;
/* Compute key length. */
- for(q = elem.beg; !*q && q < elem.end; q++)
+ for(q = elem.beg; q < elem.end && !*q; q++)
;
len = ((elem.end - q) * 8);
if(len) {