mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
r11334: Print error status in debug.
Andrew Bartlett
(This used to be commit 3b5ef4208d
)
This commit is contained in:
parent
15b9e70ebc
commit
22d867fb1d
@ -117,8 +117,9 @@ static void dgm_socket_send(struct nbt_dgram_socket *dgmsock)
|
||||
status = socket_sendto(dgmsock->sock, &req->encoded, &len, 0,
|
||||
req->dest.addr, req->dest.port);
|
||||
if (NT_STATUS_IS_ERR(status)) {
|
||||
DEBUG(3,("Failed to send datagram of length %u to %s:%d\n",
|
||||
(unsigned)req->encoded.length, req->dest.addr, req->dest.port));
|
||||
DEBUG(3,("Failed to send datagram of length %u to %s:%d: %s\n",
|
||||
(unsigned)req->encoded.length, req->dest.addr, req->dest.port,
|
||||
nt_errstr(status)));
|
||||
DLIST_REMOVE(dgmsock->send_queue, req);
|
||||
talloc_free(req);
|
||||
continue;
|
||||
|
Loading…
Reference in New Issue
Block a user