calls conn_process_packet

fixed some typo.

FossilOrigin-Name: 1716ae7a62ed4378d05bbc9a64b1d5355f3f50b44ce9103f0d1a119821d5637a
This commit is contained in:
7u83@mail.ru 2016-02-20 15:21:32 +00:00
parent 5ed83ddc0c
commit 7827a0e369
1 changed files with 2 additions and 2 deletions

View File

@ -184,7 +184,7 @@ static int process_elements(struct conn *conn, uint8_t * rawmsg, int len,struct
/* Throw away unexpected response messages */
if (!(as.msg_id & 1)) {
cw_dbg(DBG_MSG_ERR,
"Message type %d (%s) unexpected/illigal in %s State, discarding.",
"Message type %d (%s) unexpected/illegal in %s State, discarding.",
as.msg_id, cw_strmsg(as.msg_id),
cw_strstate(conn->capwap_state));
errno = EAGAIN;
@ -474,7 +474,7 @@ int cw_read_messages(struct conn *conn)
return n;
if (n > 0) {
return conn_process_packet(conn, buf, n,(struct sockaddr*)&conn->addr);
return conn->process_packet(conn, buf, n,(struct sockaddr*)&conn->addr);
}
errno = EAGAIN;
return -1;