mirror of
				https://github.com/rofl0r/proxychains-ng.git
				synced 2025-11-04 00:56:03 +00:00 
			
		
		
		
	check snprintf return value for error
This commit is contained in:
		@@ -244,7 +244,7 @@ static int tunnel_to(int sock, ip_type ip, unsigned short port, proxy_type pt, c
 | 
			
		||||
			                ulen ? "Proxy-Authorization: Basic " : dst,
 | 
			
		||||
			                dst, ulen ? "\r\n" : dst);
 | 
			
		||||
 | 
			
		||||
			if(len != send(sock, buff, len, 0))
 | 
			
		||||
			if(len < 0 || len != send(sock, buff, len, 0))
 | 
			
		||||
				goto err;
 | 
			
		||||
 | 
			
		||||
			len = 0;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user