mirror of
https://github.com/ep00ch/lwip-contrib-mac.git
synced 2024-10-03 20:55:18 +00:00
Use the api function netconn_err() instead of directly dereferencing the struct netconn.
This commit is contained in:
parent
6042cd8598
commit
eb0ff133ad
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user