From: Fabian Keil <fk@fabiankeil.de>
Date: Tue, 6 Sep 2011 18:46:17 +0000 (+0000)
Subject: Fix a log message in socks5_connect(), a failed write operation was logged as failed... 
X-Git-Tag: v_3_0_18~100
X-Git-Url: http://www.privoxy.org/gitweb/@default-cgi@/faq/%22https:/%22javascript:back()/@default-cgi@send-stylesheet?a=commitdiff_plain;h=efd97f4d4dcc433fdd8971033ed99e559d3f58fc;p=privoxy.git

Fix a log message in socks5_connect(), a failed write operation was logged as failed read operation
---

diff --git a/gateway.c b/gateway.c
index aaee5033..a346cec4 100644
--- a/gateway.c
+++ b/gateway.c
@@ -1,4 +1,4 @@
-const char gateway_rcs[] = "$Id: gateway.c,v 1.75 2011/07/30 15:05:49 fabiankeil Exp $";
+const char gateway_rcs[] = "$Id: gateway.c,v 1.76 2011/09/04 11:10:56 fabiankeil Exp $";
 /*********************************************************************
  *
  * File        :  $Source: /cvsroot/ijbswa/current/gateway.c,v $
@@ -1085,7 +1085,7 @@ static jb_socket socks5_connect(const struct forward_spec *fwd,
 
    if (write_socket(sfd, cbuf, client_pos))
    {
-      errstr = "SOCKS5 negotiation read failed";
+      errstr = "SOCKS5 negotiation write failed";
       csp->error_message = strdup(errstr);
       log_error(LOG_LEVEL_CONNECT, "%s", errstr);
       close_socket(sfd);