calls conn_process_packet
fixed some typo. FossilOrigin-Name: 1716ae7a62ed4378d05bbc9a64b1d5355f3f50b44ce9103f0d1a119821d5637a
This commit is contained in:
parent
5ed83ddc0c
commit
7827a0e369
@ -184,7 +184,7 @@ static int process_elements(struct conn *conn, uint8_t * rawmsg, int len,struct
|
|||||||
/* Throw away unexpected response messages */
|
/* Throw away unexpected response messages */
|
||||||
if (!(as.msg_id & 1)) {
|
if (!(as.msg_id & 1)) {
|
||||||
cw_dbg(DBG_MSG_ERR,
|
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),
|
as.msg_id, cw_strmsg(as.msg_id),
|
||||||
cw_strstate(conn->capwap_state));
|
cw_strstate(conn->capwap_state));
|
||||||
errno = EAGAIN;
|
errno = EAGAIN;
|
||||||
@ -474,7 +474,7 @@ int cw_read_messages(struct conn *conn)
|
|||||||
return n;
|
return n;
|
||||||
|
|
||||||
if (n > 0) {
|
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;
|
errno = EAGAIN;
|
||||||
return -1;
|
return -1;
|
||||||
|
Loading…
Reference in New Issue
Block a user