diff options
author | Volker Lendecke <vl@samba.org> | 2010-08-15 15:30:21 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2010-08-17 22:44:03 +0200 |
commit | 7d164498dbad77e2072eaae9e421ee1c45336257 (patch) | |
tree | ebdcf3b70b971957b107ce8074205dcc2889c595 /source3/smbd | |
parent | 9671547d17fa8152dbad127fde2a963b2ba834a0 (diff) | |
download | samba-7d164498dbad77e2072eaae9e421ee1c45336257.tar.gz samba-7d164498dbad77e2072eaae9e421ee1c45336257.tar.bz2 samba-7d164498dbad77e2072eaae9e421ee1c45336257.zip |
s3: Lift smbd_server_fd() from read_data()
All callers have appropriate debug messages themselves
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/reply.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c index a2b6b33af5..18d198fe0f 100644 --- a/source3/smbd/reply.c +++ b/source3/smbd/reply.c @@ -3966,9 +3966,14 @@ void reply_writebraw(struct smb_request *req) status = read_data(req->sconn->sock, buf+4, numtowrite); if (!NT_STATUS_IS_OK(status)) { - DEBUG(0,("reply_writebraw: Oversize secondary write " - "raw read failed (%s). Terminating\n", - nt_errstr(status))); + char addr[INET6_ADDRSTRLEN]; + /* Try and give an error message + * saying what client failed. */ + DEBUG(0, ("reply_writebraw: Oversize secondary write " + "raw read failed (%s) for client %s. " + "Terminating\n", nt_errstr(status), + get_peer_addr(req->sconn->sock, addr, + sizeof(addr)))); exit_server_cleanly("secondary writebraw failed"); } |