Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gcoap: propagate local tx aux to gcoap_req_send() and in _handler_req() #20711

Merged
merged 5 commits into from
Jul 5, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
gcoap/forward_proxy: set payload length in forwarded PDU
  • Loading branch information
fabian18 committed May 31, 2024
commit f50dd7daded30d6562c20459adbfae34869ad2e3
3 changes: 2 additions & 1 deletion sys/net/application_layer/gcoap/forward_proxy.c
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
ztimer_set(ZTIMER_MSEC, timer, timeout_ms);
}


Check warning on line 90 in sys/net/application_layer/gcoap/forward_proxy.c

View workflow job for this annotation

GitHub Actions / static-tests

too many consecutive empty lines
void gcoap_forward_proxy_init(void)
{
gcoap_register_listener(&forward_proxy_listener);
Expand Down Expand Up @@ -400,6 +400,7 @@

/* copy payload from client_pkt to pkt */
memcpy(pkt->payload, client_pkt->payload, client_pkt->payload_len);
pkt->payload_len = client_pkt->payload_len;
len += client_pkt->payload_len;

return len;
Expand Down Expand Up @@ -460,7 +461,7 @@
/* copy all options from client_pkt to pkt */
len = _gcoap_forward_proxy_copy_options(&client_ep->pdu, client_pkt, client_ep, urip);

if (len == -EINVAL) {
if (len < 0) {
_free_client_ep(client_ep);
return -EINVAL;
}
Expand Down
Loading