git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
95f7cff
)
HACK panic sendfile buffer size and smbd_smb2_generate_outbody
author
Stefan Metzmacher
<metze@samba.org>
Wed, 4 Dec 2013 14:08:06 +0000
(15:08 +0100)
committer
Stefan Metzmacher
<metze@samba.org>
Wed, 12 Mar 2014 23:04:40 +0000
(
00:04
+0100)
source3/smbd/smb2_server.c
patch
|
blob
|
history
diff --git
a/source3/smbd/smb2_server.c
b/source3/smbd/smb2_server.c
index f67fd44da2224c71a9faf70f67ba9331e85cf739..89a36e798dd0dabcdb450061b1b323d347768be9 100644
(file)
--- a/
source3/smbd/smb2_server.c
+++ b/
source3/smbd/smb2_server.c
@@
-926,6
+926,7
@@
DATA_BLOB smbd_smb2_generate_outbody(struct smbd_smb2_request *req, size_t size)
if (size <= sizeof(req->out._body)) {
return data_blob_const(req->out._body, size);
}
+ smb_panic(__location__);
}
return data_blob_talloc(req, NULL, size);
@@
-3060,6
+3061,7
@@
static NTSTATUS smbd_smb2_flush_send_queue(struct smbd_server_connection *sconn)
if (size <= e->sendfile_header->length) {
buf = e->sendfile_header->data;
} else {
+ smb_panic(__location__);
buf = talloc_array(e->mem_ctx, uint8_t, size);
if (buf == NULL) {
return NT_STATUS_NO_MEMORY;