summaryrefslogtreecommitdiff
path: root/source4/libcli
diff options
context:
space:
mode:
Diffstat (limited to 'source4/libcli')
-rw-r--r--source4/libcli/dgram/dgramsocket.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source4/libcli/dgram/dgramsocket.c b/source4/libcli/dgram/dgramsocket.c
index decbc0225c..6c6a45f48e 100644
--- a/source4/libcli/dgram/dgramsocket.c
+++ b/source4/libcli/dgram/dgramsocket.c
@@ -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;