Searched refs:newtctx (Results 1 – 2 of 2) sorted by relevance
443 struct tcp_ctx *newtctx; in tcp_accept() local453 newtctx = malloc(sizeof(*newtctx)); in tcp_accept()454 if (newtctx == NULL) in tcp_accept()458 newtctx->tc_fd = accept(tctx->tc_fd, (struct sockaddr *)&tctx->tc_sa, in tcp_accept()460 if (newtctx->tc_fd == -1) { in tcp_accept()462 free(newtctx); in tcp_accept()466 newtctx->tc_side = TCP_SIDE_SERVER_WORK; in tcp_accept()467 newtctx->tc_magic = TCP_CTX_MAGIC; in tcp_accept()468 *newctxp = newtctx; in tcp_accept()
443 struct tcp_ctx *newtctx; in tcp_accept() local453 newtctx = malloc(sizeof(*newtctx)); in tcp_accept()454 if (newtctx == NULL) in tcp_accept()458 newtctx->tc_fd = accept(tctx->tc_fd, (struct sockaddr *)&tctx->tc_sa, in tcp_accept()460 if (newtctx->tc_fd < 0) { in tcp_accept()462 free(newtctx); in tcp_accept()466 newtctx->tc_wait_called = true; in tcp_accept()467 newtctx->tc_side = TCP_SIDE_SERVER_WORK; in tcp_accept()468 newtctx->tc_magic = TCP_CTX_MAGIC; in tcp_accept()469 *newctxp = newtctx; in tcp_accept()