summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHauke Mehrtens2026-04-13 08:30:15 +0000
committerHauke Mehrtens2026-05-15 00:29:10 +0000
commit93432149a7aea18953c5f2d89a7c25c56342d5f9 (patch)
treeeba6dd8482a853678d53d004a9299e118edbe0e7
parent53e7150619a3662226d1de408c5ac51f859c47f2 (diff)
downloaduhttpd-93432149a7aea18953c5f2d89a7c25c56342d5f9.tar.gz
utils: remove unreachable return statement in uh_addr_rfc1918
The function already returns the result of the range-check expression on the preceding line. The `return 0;` statement that follows is dead code and will never be executed. Remove it to eliminate the compiler warning and avoid misleading readers. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
-rw-r--r--utils.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/utils.c b/utils.c
index b2653d1..deb9c95 100644
--- a/utils.c
+++ b/utils.c
@@ -254,8 +254,6 @@ bool uh_addr_rfc1918(struct uh_addr *addr)
return ((a >= 0x0A000000) && (a <= 0x0AFFFFFF)) ||
((a >= 0xAC100000) && (a <= 0xAC1FFFFF)) ||
((a >= 0xC0A80000) && (a <= 0xC0A8FFFF));
-
- return 0;
}