From: Bob Campbell Date: Fri, 3 Jun 2016 02:32:10 +0000 (+1200) Subject: samba_spnupdate: do not interpret failure count as unix error code X-Git-Tag: tdb-1.3.10~997 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=82a10942d4e88b474b2e87f53cf2d82977e596e0;p=thirdparty%2Fsamba.git samba_spnupdate: do not interpret failure count as unix error code Signed-off-by: Bob Campbell Pair-programmed-with: Garming Sam Reviewed-by: Douglas Bagnall Autobuild-User(master): Douglas Bagnall Autobuild-Date(master): Fri Jun 3 11:02:26 CEST 2016 on sn-devel-144 --- diff --git a/source4/dsdb/dns/dns_update.c b/source4/dsdb/dns/dns_update.c index 0c0e4b4512e..0591e346824 100644 --- a/source4/dsdb/dns/dns_update.c +++ b/source4/dsdb/dns/dns_update.c @@ -309,14 +309,8 @@ static void dnsupdate_spnupdate_done(struct tevent_req *subreq) ret = samba_runcmd_recv(subreq, &sys_errno); TALLOC_FREE(subreq); if (ret != 0) { - service->nameupdate.status = map_nt_error_from_unix_common(sys_errno); - } else { - service->nameupdate.status = NT_STATUS_OK; - } - - if (!NT_STATUS_IS_OK(service->nameupdate.status)) { - DEBUG(0,(__location__ ": Failed SPN update - %s\n", - nt_errstr(service->nameupdate.status))); + DEBUG(0,(__location__ ": Failed SPN update - with error code %d\n", + sys_errno)); } else { DEBUG(3,("Completed SPN update check OK\n")); }