From 3eeda139bc5180c4cc1e43556b84695a132b48c6 Mon Sep 17 00:00:00 2001 From: Simon Goldschmidt Date: Fri, 22 Sep 2023 09:54:36 +0200 Subject: [PATCH] minor coding style/spelling fixes --- doc/savannah.txt | 2 +- src/core/ipv4/icmp.c | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/doc/savannah.txt b/doc/savannah.txt index 12e2fc15..16659992 100644 --- a/doc/savannah.txt +++ b/doc/savannah.txt @@ -102,7 +102,7 @@ Archive the current directory using tar, gzip'd, bzip2'd and zip'd. tar cjvf lwip-1.4.1.tar.bz2 lwip-1.4.1 zip -r lwip-1.4.1.zip lwip-1.4.1 -Alterntively, archive the current directory using git +Alternatively, archive the current directory using git git archive -o lwip-1.4.1.tar.gz --prefix lwip-1.4.1/ STABLE-1_4_1 Now, sign the archives with a detached GPG binary signature as follows: diff --git a/src/core/ipv4/icmp.c b/src/core/ipv4/icmp.c index 9d64bba3..9a82a67a 100644 --- a/src/core/ipv4/icmp.c +++ b/src/core/ipv4/icmp.c @@ -351,7 +351,9 @@ icmp_send_response(struct pbuf *p, u8_t type, u8_t code) /* Keep IP header + up to 8 bytes */ response_pkt_len = IP_HLEN + ICMP_DEST_UNREACH_DATASIZE; - if (p->tot_len < response_pkt_len) response_pkt_len = p->tot_len; + if (p->tot_len < response_pkt_len) { + response_pkt_len = p->tot_len; + } /* ICMP header + part of original packet */ q = pbuf_alloc(PBUF_IP, sizeof(struct icmp_hdr) + response_pkt_len, PBUF_RAM);