We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b3269f commit 62cb73fCopy full SHA for 62cb73f
src/operators/rbl.cc
@@ -228,7 +228,7 @@ bool Rbl::evaluate(Transaction *t, RuleWithActions *rule,
228
229
// SonarCloud suggested to use the init-statement to declare "addr" inside the if statement.
230
// I think that's not good here, because we need that in the else block
231
- struct sockaddr *addr = info->ai_addr; // NOSONAR
+ conststruct sockaddr *addr = info->ai_addr; // NOSONAR
232
if (addr->sa_family == AF_INET) { // NOSONAR
233
struct sockaddr_in sin{}; // initialize an empty struct; we don't need port info
234
memcpy(&sin.sin_addr, addr->sa_data + 2, sizeof(sin.sin_addr));
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments