Use the api function netconn_err() instead of directly dereferencing the struct netconn.

This commit is contained in:
goldsimon 2007-10-28 14:17:49 +00:00
parent 6042cd8598
commit eb0ff133ad

View File

@ -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