[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [torsocks/master] Fix: change ERR message to WARN



commit a4dbb2dceb96b81ed0eefd49b219231e93ef1cd6
Author: David Goulet <dgoulet@xxxxxxxxx>
Date:   Fri Aug 23 21:42:43 2013 -0400

    Fix: change ERR message to WARN
    
    Signed-off-by: David Goulet <dgoulet@xxxxxxxxx>
---
 src/lib/connect.c |    2 +-
 src/lib/socket.c  |    3 +--
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/lib/connect.c b/src/lib/connect.c
index 6d84cc8..357a313 100644
--- a/src/lib/connect.c
+++ b/src/lib/connect.c
@@ -57,7 +57,7 @@ LIBC_CONNECT_RET_TYPE tsocks_connect(LIBC_CONNECT_SIG)
 	 * request that we can't pass through Tor using raw UDP packet.
 	 */
 	if (sock_type != SOCK_STREAM) {
-		ERR("[connect] UDP or ICMP stream can't be handled. Rejecting.");
+		WARN("[connect] UDP or ICMP stream can't be handled. Rejecting.");
 		errno = EBADF;
 		goto error;
 	}
diff --git a/src/lib/socket.c b/src/lib/socket.c
index 1f543e5..ce28576 100644
--- a/src/lib/socket.c
+++ b/src/lib/socket.c
@@ -34,8 +34,7 @@ LIBC_SOCKET_RET_TYPE tsocks_socket(LIBC_SOCKET_SIG)
 		break;
 	default:
 		if (__domain == AF_INET || __domain == AF_INET6) {
-			ERR("Non TCP socket denied. Tor network can't handle it. "
-					"Stopping everything!");
+			WARN("Non TCP inet socket denied. Tor network can't handle it.");
 			errno = EINVAL;
 			return -1;
 		}



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits