X-Git-Url: http://www.dolda2000.com/gitweb/?p=ashd.git;a=blobdiff_plain;f=src%2Fplaintcp.c;h=864efe1598c2f2585043855b820cee708adfcdf5;hp=d1d596962b61182298047b4e9c12eb99df3c9257;hb=41fe6c390c31ccb7f70d26a13418bd772fc7b5e4;hpb=926848cd7900071edc622b75d3d2cd8ae0f15670 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); } }