From a165debaf902f39f40d379cfc2e3262bf97d5048 Mon Sep 17 00:00:00 2001 From: Oliver Chen Date: Wed, 16 Apr 2025 05:28:29 +0000 Subject: [PATCH] Add dscp/DSCP for spell check and fix clang-tidy --- .github/actions/spell-check/allow.txt | 2 ++ pdns/misc.cc | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/actions/spell-check/allow.txt b/.github/actions/spell-check/allow.txt index a325ba18a0..7c3de4a6c4 100644 --- a/.github/actions/spell-check/allow.txt +++ b/.github/actions/spell-check/allow.txt @@ -864,6 +864,8 @@ drsoa dsa DSANSEC dsc +dscp +DSCP dsdelegation dsdigestalgorithm dses diff --git a/pdns/misc.cc b/pdns/misc.cc index 26335e9203..a8b5694f76 100644 --- a/pdns/misc.cc +++ b/pdns/misc.cc @@ -1084,8 +1084,8 @@ bool setReuseAddr(int sock) void setDscp(int sock, unsigned short family, uint8_t dscp) { - int val; - unsigned int len; + int val = 0; + unsigned int len = 0; if (dscp == 0 || dscp > 63) { // No DSCP marking -- 2.47.2