From: Fredrik Tolf Date: Tue, 31 Aug 2010 13:42:44 +0000 (+0200) Subject: Fixed plaintcp bug. X-Git-Tag: 0.1~54 X-Git-Url: http://www.dolda2000.com/gitweb/?p=ashd.git;a=commitdiff_plain;h=41fe6c390c31ccb7f70d26a13418bd772fc7b5e4 Fixed plaintcp bug. --- 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); } }