summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsource4/scripting/bin/samba_spnupdate2
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/scripting/bin/samba_spnupdate b/source4/scripting/bin/samba_spnupdate
index 6a69f48a45..502eebaf53 100755
--- a/source4/scripting/bin/samba_spnupdate
+++ b/source4/scripting/bin/samba_spnupdate
@@ -212,6 +212,8 @@ def call_rodc_update(d):
ns.str = n
spn_names.append(ns)
req1.count = req1.count + 1
+ if spn_names == []:
+ return
req1.spn_names = spn_names
(level, res) = drs.DsWriteAccountSpn(drs_handle, 1, req1)