]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
socks: fix infof() flag for outputing a char
authorDaniel Stenberg <daniel@haxx.se>
Thu, 15 Dec 2022 11:29:59 +0000 (12:29 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 15 Dec 2022 14:52:17 +0000 (15:52 +0100)
It used to be a 'long', %lu is no longer correct.

Follow-up to 57d2d9b6bed33d
Detected by Coverity CID 1517663

Closes #10100

lib/socks.c

index d1220fa46b9ab51df5228c6f2f7123c5a13f2837..1b9f4fde7d045bcb553ee286079a8f60576220d0 100644 (file)
@@ -546,7 +546,7 @@ static CURLproxycode do_SOCKS5(struct Curl_cfilter *cf,
 
     if(auth & ~(CURLAUTH_BASIC | CURLAUTH_GSSAPI))
       infof(data,
-            "warning: unsupported value passed to CURLOPT_SOCKS5_AUTH: %lu",
+            "warning: unsupported value passed to CURLOPT_SOCKS5_AUTH: %u",
             auth);
     if(!(auth & CURLAUTH_BASIC))
       /* disable username/password auth */