]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Use getInnerRemote() instead of inlining it. NFC
authorMiod Vallat <miod.vallat@powerdns.com>
Wed, 20 May 2026 07:30:23 +0000 (09:30 +0200)
committerMiod Vallat <miod.vallat@powerdns.com>
Wed, 20 May 2026 07:30:23 +0000 (09:30 +0200)
Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
pdns/auth-main.cc

index f3a6645bcad7652d2709e20913016d12048d721c..5c9aa7c2a2960d485dd973a78d595d021bf4d163 100644 (file)
@@ -629,10 +629,7 @@ static void qthread(unsigned int num)
 
         numreceived++;
 
-        accountremote = question.d_remote;
-        if (question.d_inner_remote) {
-          accountremote = *question.d_inner_remote;
-        }
+        accountremote = question.getInnerRemote();
 
         if (accountremote.sin4.sin_family == AF_INET) {
           numreceived4++;