From 7f949e624f3076b7a5bfdd30b8726007df1b761d Mon Sep 17 00:00:00 2001 From: joerg Date: Sun, 24 Jan 2010 19:10:35 +0000 Subject: Fix a variable reference in TCP_NOPUSH case. --- net/libfetch/files/http.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/libfetch/files/http.c b/net/libfetch/files/http.c index 2b93ec12cd8..4028178c754 100644 --- a/net/libfetch/files/http.c +++ b/net/libfetch/files/http.c @@ -1,4 +1,4 @@ -/* $NetBSD: http.c,v 1.28 2010/01/23 14:53:08 joerg Exp $ */ +/* $NetBSD: http.c,v 1.29 2010/01/24 19:10:35 joerg Exp $ */ /*- * Copyright (c) 2000-2004 Dag-Erling Coïdan Smørgrav * Copyright (c) 2003 Thomas Klausner @@ -329,7 +329,7 @@ http_closefn(void *v) fetch_cache_put(io->conn, fetch_close); #ifdef TCP_NOPUSH val = 1; - setsockopt(conn->sd, IPPROTO_TCP, TCP_NOPUSH, &val, + setsockopt(io->conn->sd, IPPROTO_TCP, TCP_NOPUSH, &val, sizeof(val)); #endif } else { -- cgit v1.2.3