mirror of
				https://github.com/drwetter/testssl.sh.git
				synced 2025-10-31 05:45:26 +01:00 
			
		
		
		
	Add quotes around CONNECT_TIMEOUT
I don't want to add any unnecessary vulnerabilities...
This commit is contained in:
		| @@ -10173,7 +10173,7 @@ fd_socket() { | |||||||
|                     break |                     break | ||||||
|                fi |                fi | ||||||
|           done |           done | ||||||
|      elif ! timeout $CONNECT_TIMEOUT bash -c "exec 3<>/dev/tcp/$nodeip/$PORT" || \ |      elif ! timeout "$CONNECT_TIMEOUT" bash -c "exec 3<>/dev/tcp/$nodeip/$PORT" || \ | ||||||
|           ! exec 5<>/dev/tcp/$nodeip/$PORT; then  #  2>/dev/null would remove an error message, but disables debugging |           ! exec 5<>/dev/tcp/$nodeip/$PORT; then  #  2>/dev/null would remove an error message, but disables debugging | ||||||
|           ((NR_SOCKET_FAIL++)) |           ((NR_SOCKET_FAIL++)) | ||||||
|           connectivity_problem $NR_SOCKET_FAIL $MAX_SOCKET_FAIL "TCP connect problem" "repeated TCP connect problems, giving up" |           connectivity_problem $NR_SOCKET_FAIL $MAX_SOCKET_FAIL "TCP connect problem" "repeated TCP connect problems, giving up" | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Gonçalo Ribeiro
					Gonçalo Ribeiro