commit | d58afeb9d5bc4ec968ac619f0c62c16822ebb879 | [log] [tgz] |
---|---|---|
author | Holger Hans Peter Freyther <zecke@selfish.org> | Wed May 05 20:42:14 2010 +0800 |
committer | Holger Hans Peter Freyther <zecke@selfish.org> | Tue Jun 15 20:24:17 2010 +0800 |
tree | 622ae153c974fdc35640035cd6fc812319d306da | |
parent | 74d0042d45fb4a12848e2c1db287f3a01a01816d [diff] |
nat: Using the right fd can be a good idea as well
diff --git a/openbsc/src/nat/bsc_nat.c b/openbsc/src/nat/bsc_nat.c index 90df41f..88fc3f8 100644 --- a/openbsc/src/nat/bsc_nat.c +++ b/openbsc/src/nat/bsc_nat.c
@@ -743,7 +743,7 @@ } 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));