mirror of
				https://github.com/sqlmapproject/sqlmap.git
				synced 2025-11-04 09:57:38 +03:00 
			
		
		
		
	minor fix
This commit is contained in:
		
							parent
							
								
									a8a5e61ee1
								
							
						
					
					
						commit
						408d12dc41
					
				| 
						 | 
					@ -396,7 +396,6 @@ def create_connection(address, timeout=socket._GLOBAL_DEFAULT_TIMEOUT,
 | 
				
			||||||
    Patched for DNS-leakage
 | 
					    Patched for DNS-leakage
 | 
				
			||||||
    """
 | 
					    """
 | 
				
			||||||
    host, port = address
 | 
					    host, port = address
 | 
				
			||||||
    err = None
 | 
					 | 
				
			||||||
    sock = None
 | 
					    sock = None
 | 
				
			||||||
    try:
 | 
					    try:
 | 
				
			||||||
        sock = socksocket(socket.AF_INET, socket.SOCK_STREAM)
 | 
					        sock = socksocket(socket.AF_INET, socket.SOCK_STREAM)
 | 
				
			||||||
| 
						 | 
					@ -405,12 +404,8 @@ def create_connection(address, timeout=socket._GLOBAL_DEFAULT_TIMEOUT,
 | 
				
			||||||
        if source_address:
 | 
					        if source_address:
 | 
				
			||||||
            sock.bind(source_address)
 | 
					            sock.bind(source_address)
 | 
				
			||||||
        sock.connect(address)
 | 
					        sock.connect(address)
 | 
				
			||||||
        return sock
 | 
					    except socket.error:
 | 
				
			||||||
 | 
					 | 
				
			||||||
    except error as _:
 | 
					 | 
				
			||||||
        err = _
 | 
					 | 
				
			||||||
        if sock is not None:
 | 
					        if sock is not None:
 | 
				
			||||||
            sock.close()
 | 
					            sock.close()
 | 
				
			||||||
 | 
					        raise
 | 
				
			||||||
    if err is not None:
 | 
					    return sock
 | 
				
			||||||
        raise err
 | 
					 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user