From eb0ff133ad7ef76ea5b23b13926b6287155f5dd4 Mon Sep 17 00:00:00 2001 From: goldsimon Date: Sun, 28 Oct 2007 14:17:49 +0000 Subject: [PATCH] Use the api function netconn_err() instead of directly dereferencing the struct netconn. --- apps/httpserver/httpserver-netconn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/httpserver/httpserver-netconn.c b/apps/httpserver/httpserver-netconn.c index 8cd74d3..2fcf034 100644 --- a/apps/httpserver/httpserver-netconn.c +++ b/apps/httpserver/httpserver-netconn.c @@ -16,7 +16,7 @@ void http_server_serve(struct netconn *conn) { We assume the request (the part we care about) is in one netbuf */ inbuf = netconn_recv(conn); - if (conn->err == ERR_OK) { + if (netconn_err(conn) == ERR_OK) { netbuf_data(inbuf, &buf, &buflen); /* Is this an HTTP GET command? (only check the first 5 chars, since