diff --git a/bin/named/client.c b/bin/named/client.c index ad78753ff1..9f9784fe49 100644 --- a/bin/named/client.c +++ b/bin/named/client.c @@ -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 @@ -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.