From 4bfd40ec107fdda668ca1e32ba476ceee7e5156d Mon Sep 17 00:00:00 2001 From: Jonas Fonseca Date: Wed, 8 Feb 2006 21:04:19 +0100 Subject: [PATCH] NNTP: Use state instead of conn->state, since it hasn't been updated yet Fixes: 1735f96a871f7d4c5f54ef14f8dc7390c601db7f --- src/protocol/nntp/connection.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/protocol/nntp/connection.c b/src/protocol/nntp/connection.c index 2b95169cd..e054fcfd0 100644 --- a/src/protocol/nntp/connection.c +++ b/src/protocol/nntp/connection.c @@ -217,11 +217,11 @@ nntp_end_request(struct connection *conn, enum connection_state state) return; } - if (conn->state == S_OK) { + if (state == S_OK) { if (conn->cached) { normalize_cache_entry(conn->cached, conn->from); } - } else if (conn->state == S_OUT_OF_MEM) { + } else if (state == S_OUT_OF_MEM) { /* FIXME: Clear the socket buffers before ending so the one * grabing the keepalive connection will be able to go on. */ }