From 41fe6c390c31ccb7f70d26a13418bd772fc7b5e4 Mon Sep 17 00:00:00 2001 From: Fredrik Tolf Date: Tue, 31 Aug 2010 15:42:44 +0200 Subject: [PATCH] Fixed plaintcp bug. --- src/plaintcp.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/plaintcp.c b/src/plaintcp.c index d1d5969..864efe1 100644 --- a/src/plaintcp.c +++ b/src/plaintcp.c @@ -186,6 +186,9 @@ void handleplain(int argc, char **argp, char **argv) exit(1); } } else { - mustart(listenloop, fd, port); + omalloc(tcp); + tcp->fd = fd; + tcp->sport = port; + mustart(listenloop, tcp); } } -- 2.11.0