Browse Source

pcb_new sets conn->err if protocol is not implemented -> netconn_new_..() does not allocate a new connection for unsupported protocols.

STABLE-2_1_x
goldsimon 19 years ago
parent
commit
15e8208457
  1. 5
      CHANGELOG
  2. 2
      src/api/api_msg.c

5
CHANGELOG

@ -204,6 +204,11 @@ HISTORY
++ Bug fixes:
2007-06-13 Simon Goldschmidt
* api_msg.c: pcb_new sets conn->err if protocol is not implemented
-> netconn_new_..() does not allocate a new connection for unsupported
protocols.
2007-06-13 Frédéric Bernon, Simon Goldschmidt
* api_lib.c: change return expression in netconn_addr and netconn_peer, because
conn->err was reset to ERR_OK without any reasons (and error was lost)...

2
src/api/api_msg.c

@ -326,6 +326,8 @@ pcb_new(struct api_msg_msg *msg)
break;
#endif /* LWIP_TCP */
default:
/* Unsupported netconn type, e.g. protocol disabled */
msg->conn->err = ERR_VAL;
break;
}

Loading…
Cancel
Save