SMTP: Add comment about 'err' checking in connect callback

This commit is contained in:
Simon Goldschmidt 2014-06-04 21:17:25 +02:00
parent 6d4e09ea3c
commit 36eab89184
1 changed files with 1 additions and 0 deletions

View File

@ -751,6 +751,7 @@ smtp_tcp_connected(void *arg, struct tcp_pcb *pcb, err_t err)
if (err == ERR_OK) {
LWIP_DEBUGF(SMTP_DEBUG_STATE, ("smtp_connected: Waiting for 220\n"));
} else {
/* shouldn't happen, but we still check 'err', only to be sure */
LWIP_DEBUGF(SMTP_DEBUG_WARN, ("smtp_connected: %d\n", (int)err));
smtp_close(arg, pcb, SMTP_RESULT_ERR_CONNECT, 0, err);
}