ports/dns/powerdns/files/patch-pdns_dns__random.cc
Kurt Jaeger 582e216d84 dns/powerdns: upgrade 4.1.14 -> 4.2.0
- Please note: to fix CVE-2019-10203, upgrading is not enough
  Manually apply the schema change:
  ALTER TABLE domains ALTER notified_serial TYPE bigint
  USING CASE WHEN notified_serial >= 0 THEN notified_serial::bigint END;

PR:		239850
Submitted by:	Ralf van der Enden <tremere@cainites.net> (maintainer)
MFH:		2019Q3
Relnotes:	https://doc.powerdns.com/authoritative/changelog/4.2.html
		http://blog.powerdns.com/2019/08/29/powerdns-authoritative-server-4-2-0/
Security:	CVE-2019-10203
2019-09-05 16:51:04 +00:00

12 lines
232 B
C++

--- pdns/dns_random.cc.orig 2018-11-29 12:53:42 UTC
+++ pdns/dns_random.cc
@@ -40,7 +40,9 @@
#include <openssl/rand.h>
#endif
#if defined(HAVE_GETRANDOM)
+extern "C" {
#include <sys/random.h>
+}
#endif
static enum DNS_RNG {