Fix build with ICL_KERNEL_PROXY.
MFC after: 2 weeks
This commit is contained in:
parent
10c8755706
commit
04108b8b21
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=312552
@ -106,9 +106,11 @@ pdu_new_response(struct pdu *request)
|
|||||||
static void
|
static void
|
||||||
pdu_receive_proxy(struct pdu *pdu)
|
pdu_receive_proxy(struct pdu *pdu)
|
||||||
{
|
{
|
||||||
|
struct connection *conn;
|
||||||
size_t len;
|
size_t len;
|
||||||
|
|
||||||
assert(proxy_mode);
|
assert(proxy_mode);
|
||||||
|
conn = pdu->pdu_connection;
|
||||||
|
|
||||||
kernel_receive(pdu);
|
kernel_receive(pdu);
|
||||||
|
|
||||||
@ -117,7 +119,7 @@ pdu_receive_proxy(struct pdu *pdu)
|
|||||||
log_errx(1, "protocol error: non-empty AHS");
|
log_errx(1, "protocol error: non-empty AHS");
|
||||||
|
|
||||||
len = pdu_data_segment_length(pdu);
|
len = pdu_data_segment_length(pdu);
|
||||||
assert(len <= pdu->pdu_connection->conn_max_recv_data_segment_length);
|
assert(len <= (size_t)conn->conn_max_recv_data_segment_length);
|
||||||
pdu->pdu_data_len = len;
|
pdu->pdu_data_len = len;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -185,7 +187,7 @@ pdu_receive(struct pdu *pdu)
|
|||||||
|
|
||||||
len = pdu_data_segment_length(pdu);
|
len = pdu_data_segment_length(pdu);
|
||||||
if (len > 0) {
|
if (len > 0) {
|
||||||
if ((int)len > conn->conn_max_recv_data_segment_length) {
|
if (len > (size_t)conn->conn_max_recv_data_segment_length) {
|
||||||
log_errx(1, "protocol error: received PDU "
|
log_errx(1, "protocol error: received PDU "
|
||||||
"with DataSegmentLength exceeding %d",
|
"with DataSegmentLength exceeding %d",
|
||||||
conn->conn_max_recv_data_segment_length);
|
conn->conn_max_recv_data_segment_length);
|
||||||
|
Loading…
Reference in New Issue
Block a user