From 9de700fe900e4bdddba4cd9b5d28860359da83a1 Mon Sep 17 00:00:00 2001
From: Michael Tuexen <tuexen@fh-muenster.de>
Date: Sun, 8 Jan 2017 14:58:41 +0100
Subject: [PATCH] Fix remote mode.

This fixes #114 and also the TCP remote mode.
---
 gtests/net/packetdrill/run_packet.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gtests/net/packetdrill/run_packet.c b/gtests/net/packetdrill/run_packet.c
index 305acbb1..f03a4db2 100644
--- a/gtests/net/packetdrill/run_packet.c
+++ b/gtests/net/packetdrill/run_packet.c
@@ -278,7 +278,7 @@ static struct socket *handle_listen_for_script_packet(
 	if (!match)
 		return NULL;
 	
-	if (socket != NULL)
+	if (socket == NULL)
 		socket = setup_new_child_socket(state, packet);
 
 	if (packet->sctp != NULL) {
-- 
GitLab