summaryrefslogtreecommitdiff
path: root/usr.sbin/nsd/nsd-notify.c
diff options
context:
space:
mode:
authorJakob Schlyter <jakob@cvs.openbsd.org>2010-01-27 10:37:03 +0000
committerJakob Schlyter <jakob@cvs.openbsd.org>2010-01-27 10:37:03 +0000
commit7734f9dd37b77eb204d6c224f356786fb129fd9e (patch)
tree7ff64b079754520bc1836fba0cefb178fa0c34b1 /usr.sbin/nsd/nsd-notify.c
parentfc268ae826642befd89b4cbd94448e4d6494c75c (diff)
merge QID generation patch from NSD trunk
Diffstat (limited to 'usr.sbin/nsd/nsd-notify.c')
-rw-r--r--usr.sbin/nsd/nsd-notify.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/nsd/nsd-notify.c b/usr.sbin/nsd/nsd-notify.c
index 32e1ac874e4..54be9bed91a 100644
--- a/usr.sbin/nsd/nsd-notify.c
+++ b/usr.sbin/nsd/nsd-notify.c
@@ -330,7 +330,7 @@ main (int argc, char *argv[])
/* Set up the header */
OPCODE_SET(q.packet, OPCODE_NOTIFY);
- ID_SET(q.packet, 42); /* Does not need to be random. */
+ ID_SET(q.packet, qid_generate());
AA_SET(q.packet);
QDCOUNT_SET(q.packet, 1);
buffer_skip(q.packet, QHEADERSZ);