FreeBSD Bugzilla – Attachment 169955 Details for
Bug 209260
[MAINTAINER][PATCH] dns/powerdns: Fix compilation on FreeBSD 9.3 i386
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Change std::abs to std::labs
patch-fix.diff (text/plain), 808 bytes, created by
Ralf van der Enden
on 2016-05-04 10:20:22 UTC
(
hide
)
Description:
Change std::abs to std::labs
Filename:
MIME Type:
Creator:
Ralf van der Enden
Created:
2016-05-04 10:20:22 UTC
Size:
808 bytes
patch
obsolete
>Index: files/patch-pdns_dnspacket.cc >=================================================================== >--- files/patch-pdns_dnspacket.cc (revision 414591) >+++ files/patch-pdns_dnspacket.cc (working copy) >@@ -7,7 +7,7 @@ > - uint64_t now = time(0); > - if(abs(trc->d_time - now) > trc->d_fudge) { > - L<<Logger::Error<<"Packet for '"<<q->qdomain<<"' denied: TSIG (key '"<<*keyname<<"') time delta "<< abs(trc->d_time - now)<<" > 'fudge' "<<trc->d_fudge<<endl; >-+ uint64_t delta = std::abs((int64_t)trc->d_time - (int64_t)time(0)); >++ uint64_t delta = std::labs((int64_t)trc->d_time - (int64_t)time(0)); > + if(delta > trc->d_fudge) { > + L<<Logger::Error<<"Packet for '"<<q->qdomain<<"' denied: TSIG (key '"<<*keyname<<"') time delta "<< delta <<" > 'fudge' "<<trc->d_fudge<<endl; > return false;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
tremere
:
maintainer-approval+
Actions:
View
|
Diff
Attachments on
bug 209260
: 169955 |
169956
|
169957
|
169958