From 0fa98cd38b59c9c05d717510f1d164af538dae90 Mon Sep 17 00:00:00 2001 From: Douglas Bagnall Date: Fri, 28 May 2021 22:45:52 +1200 Subject: [PATCH] rpc dnsserver: set the record rank Signed-off-by: Douglas Bagnall Reviewed-by: Andrew Bartlett --- source4/rpc_server/dnsserver/dnsdb.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source4/rpc_server/dnsserver/dnsdb.c b/source4/rpc_server/dnsserver/dnsdb.c index d040273c1a8..0834d54a407 100644 --- a/source4/rpc_server/dnsserver/dnsdb.c +++ b/source4/rpc_server/dnsserver/dnsdb.c @@ -657,6 +657,8 @@ WERROR dnsserver_db_update_record(TALLOC_CTX *mem_ctx, arec->dwSerial = serial; } + /* Set the correct rank for the record. */ + set_record_rank(z, name, arec); /* * Successful RPC updates *always* zero timestamp and flags and set * version.