2
0
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:
Andreas Gustafsson
2001-01-25 13:52:32 +00:00
parent 3530e10080
commit bc85580ff8

View File

@@ -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);
}
/*