mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-12 20:39:59 -04:00
Limit rndc query message sizes to 32 KiB (#41073)
(cherry picked from commit 9b17fd447c)
This commit is contained in:
parent
68f0d1f5c4
commit
380eee242d
2 changed files with 9 additions and 0 deletions
5
CHANGES
5
CHANGES
|
|
@ -1,3 +1,8 @@
|
|||
4258. [bug] Limit rndc query message sizes to 32 KiB. This should
|
||||
not break any legitimate rndc commands, but will
|
||||
prevent a rogue rndc query from allocating too
|
||||
much memory. [RT #41073]
|
||||
|
||||
4257. [cleanup] Python scripts reported incorrect version. [RT #41080]
|
||||
|
||||
4256. [bug] Allow rndc command arguments to be quoted so as
|
||||
|
|
|
|||
|
|
@ -547,6 +547,10 @@ newconnection(controllistener_t *listener, isc_socket_t *sock) {
|
|||
|
||||
conn->sock = sock;
|
||||
isccc_ccmsg_init(listener->mctx, sock, &conn->ccmsg);
|
||||
|
||||
/* Set a 32 KiB upper limit on incoming message. */
|
||||
isccc_ccmsg_setmaxsize(&conn->ccmsg, 32768);
|
||||
|
||||
conn->ccmsg_valid = ISC_TRUE;
|
||||
conn->sending = ISC_FALSE;
|
||||
conn->timer = NULL;
|
||||
|
|
|
|||
Loading…
Reference in a new issue