Skip to content

Commit

Permalink
oopses
Browse files Browse the repository at this point in the history
  • Loading branch information
kazuho committed Oct 13, 2023
1 parent fd2063c commit 6501ed8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/quicly.c
Original file line number Diff line number Diff line change
Expand Up @@ -5360,7 +5360,7 @@ static int handle_ack_frame(quicly_conn_t *conn, struct st_quicly_handle_payload
/* update counters */
for (size_t i = 0; i < PTLS_ELEMENTSOF(frame.ecn_counts); ++i) {
if (frame.ecn_counts[i] > conn->egress.ecn.counts[state->epoch][i]) {
conn->super.stats.num_packets.ack_ecn_counts[i] = frame.ecn_counts[i] - conn->egress.ecn.counts[state->epoch][i];
conn->super.stats.num_packets.ack_ecn_counts[i] += frame.ecn_counts[i] - conn->egress.ecn.counts[state->epoch][i];
conn->egress.ecn.counts[state->epoch][i] = frame.ecn_counts[i];
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/cli.c
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ static ssize_t receive_datagram(int fd, void *buf, quicly_address_t *src, uint8_

static void set_ecn(struct msghdr *mess, int ecn)
{
if (ecn != 0)
if (ecn == 0)
return;

struct cmsghdr *cmsg = (struct cmsghdr *)((char *)mess->msg_control + mess->msg_controllen);
Expand Down

0 comments on commit 6501ed8

Please sign in to comment.