mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 06:25:31 +00:00
mask message id to 16 bits explicitly
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: dispatch.c,v 1.84 2001/01/25 13:47:59 gson Exp $ */
|
||||
/* $Id: dispatch.c,v 1.85 2001/01/25 13:52:32 gson Exp $ */
|
||||
|
||||
#include <config.h>
|
||||
|
||||
@@ -287,7 +287,7 @@ dns_randomid(dns_qid_t *qid) {
|
||||
|
||||
id = isc_lfsr_generate32(&qid->qid_lfsr1, &qid->qid_lfsr2);
|
||||
|
||||
return (dns_messageid_t)(id);
|
||||
return (dns_messageid_t)(id & 0xFFFF);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user