1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

NNTP: Use state instead of conn->state, since it hasn't been updated yet

Fixes: 1735f96a87
This commit is contained in:
Jonas Fonseca 2006-02-08 21:04:19 +01:00 committed by Jonas Fonseca
parent 1735f96a87
commit 4bfd40ec10

View File

@ -217,11 +217,11 @@ nntp_end_request(struct connection *conn, enum connection_state state)
return; return;
} }
if (conn->state == S_OK) { if (state == S_OK) {
if (conn->cached) { if (conn->cached) {
normalize_cache_entry(conn->cached, conn->from); 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 /* FIXME: Clear the socket buffers before ending so the one
* grabing the keepalive connection will be able to go on. */ * grabing the keepalive connection will be able to go on. */
} }