If a client requests a UDP buffer of less than 512, ignore it. [RT #1197]
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: client.c,v 1.163 2001/04/16 22:10:44 gson Exp $ */
|
||||
/* $Id: client.c,v 1.164 2001/04/19 18:29:53 bwelling Exp $ */
|
||||
|
||||
#include <config.h>
|
||||
|
||||
@@ -1334,6 +1334,13 @@ client_request(isc_task_t *task, isc_event_t *event) {
|
||||
*/
|
||||
client->udpsize = opt->rdclass;
|
||||
|
||||
/*
|
||||
* If the requested UDP buffer size is less than 512,
|
||||
* ignore it and use 512.
|
||||
*/
|
||||
if (client->udpsize < 512)
|
||||
client->udpsize = 512;
|
||||
|
||||
#ifdef DNS_OPT_NEWCODES
|
||||
/*
|
||||
* Get the flags out of the OPT record.
|
||||
|
||||
Reference in New Issue
Block a user