projects
/
pdns
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b973ba4
)
Use sizeof when initializing NSECBitmapGenerator::res
author
Remi Gacogne
<remi.gacogne@powerdns.com>
Tue, 4 Jun 2019 07:28:50 +0000
(09:28 +0200)
committer
Remi Gacogne
<remi.gacogne@powerdns.com>
Tue, 4 Jun 2019 07:28:50 +0000
(09:28 +0200)
pdns/nsecrecords.cc
patch
|
blob
|
history
diff --git
a/pdns/nsecrecords.cc
b/pdns/nsecrecords.cc
index ce04ddde061adb664a5c6a7c2d1d8bc4014dc7ec..21e6d13da1ce9eacf83f80b6515a895229e39072 100644
(file)
--- a/
pdns/nsecrecords.cc
+++ b/
pdns/nsecrecords.cc
@@
-29,7
+29,7
@@
class NSECBitmapGenerator
public:
NSECBitmapGenerator(DNSPacketWriter& pw_): pw(pw_)
{
- memset(res, 0,
34
);
+ memset(res, 0,
sizeof(res)
);
}
void set(uint16_t type)
@@
-44,7
+44,7
@@
public:
tmp.assign(res, res+len+2);
pw.xfrBlob(tmp);
}
- memset(res, 0,
34
);
+ memset(res, 0,
sizeof(res)
);
oldWindow = window;
}
res[2+bit/8] |= 1 << (7-(bit%8));