mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
samba_spnupdate: do not interpret failure count as unix error code
Signed-off-by: Bob Campbell <bobcampbell@catalyst.net.nz> Pair-programmed-with: Garming Sam <garming@catalyst.net.nz> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Autobuild-User(master): Douglas Bagnall <dbagnall@samba.org> Autobuild-Date(master): Fri Jun 3 11:02:26 CEST 2016 on sn-devel-144
This commit is contained in:
parent
5c008e0216
commit
82a10942d4
@ -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"));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user