aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-05-05 20:42:14 +0800
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-05-05 20:42:14 +0800
commite2ab44a43961f04a4bed687e0d39f2c47926556f (patch)
treee4a1708ccf9d7b1e851331cc7f3d17aceef2ab78
parent8b3cced773eb826ea07996bb12a353df378c6d59 (diff)
nat: Using the right fd can be a good idea as well
-rw-r--r--openbsc/src/nat/bsc_nat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/src/nat/bsc_nat.c b/openbsc/src/nat/bsc_nat.c
index 9971191d4..5b2184ad2 100644
--- a/openbsc/src/nat/bsc_nat.c
+++ b/openbsc/src/nat/bsc_nat.c
@@ -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));