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. */ }