From 3cc55dad1b9d96de47176ea913ca32f6d6f70065 Mon Sep 17 00:00:00 2001
From: Fabian Keil <fk@fabiankeil.de>
Date: Fri, 11 Sep 2020 13:42:15 +0200
Subject: [PATCH] socks5_connect(): Fix format specifier in a log message

---
 gateway.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gateway.c b/gateway.c
index 67219537..4207cb7c 100644
--- a/gateway.c
+++ b/gateway.c
@@ -1193,7 +1193,7 @@ static jb_socket socks5_connect(const struct forward_spec *fwd,
       header_length= strlen(client_headers);
 
       log_error(LOG_LEVEL_CONNECT,
-         "Optimistically sending %d bytes of client headers intended for %s",
+         "Optimistically sending %lu bytes of client headers intended for %s",
          header_length, csp->http->hostport);
 
       if (write_socket(sfd, client_headers, header_length))
-- 
2.49.0