nat: Using the right fd can be a good idea as well

This commit is contained in:
Holger Hans Peter Freyther 2010-05-05 20:42:14 +08:00
parent 872d7683d3
commit 569ee123a2
1 changed files with 1 additions and 1 deletions

View File

@ -743,7 +743,7 @@ static int ipaccess_listen_bsc_cb(struct bsc_fd *bfd, unsigned int what)
}
on = 1;
rc = setsockopt(bfd->fd, IPPROTO_TCP, TCP_NODELAY, &on, sizeof(on));
rc = setsockopt(fd, IPPROTO_TCP, TCP_NODELAY, &on, sizeof(on));
if (rc != 0)
LOGP(DNAT, LOGL_ERROR, "Failed to set TCP_NODELAY: %s\n", strerror(errno));