From: Daniel Stenberg Date: Thu, 15 Dec 2022 11:29:59 +0000 (+0100) Subject: socks: fix infof() flag for outputing a char X-Git-Tag: curl-7_87_0~14 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=50e781d3ecccedbfef323ce468dd281d483b44d0;p=thirdparty%2Fcurl.git socks: fix infof() flag for outputing a char It used to be a 'long', %lu is no longer correct. Follow-up to 57d2d9b6bed33d Detected by Coverity CID 1517663 Closes #10100 --- diff --git a/lib/socks.c b/lib/socks.c index d1220fa46b..1b9f4fde7d 100644 --- a/lib/socks.c +++ b/lib/socks.c @@ -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 */