1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-16 20:23:50 +03:00

r3018: handle STATUS_MORE_ENTRIES from socket_recv() in the messaging code

This commit is contained in:
Andrew Tridgell
2004-10-17 12:41:04 +00:00
committed by Gerald (Jerry) Carter
parent 1cef44505e
commit 13739b68d8

View File

@@ -125,6 +125,7 @@ static void messaging_recv_handler(struct event_context *ev, struct fd_event *fd
if (rec->ndone < sizeof(rec->header)) {
/* receive the header */
DATA_BLOB blob;
blob.length = 0;
status = socket_recv(rec->sock, rec,
&blob, sizeof(rec->header) - rec->ndone, 0);
if (NT_STATUS_IS_ERR(status)) {
@@ -159,6 +160,7 @@ static void messaging_recv_handler(struct event_context *ev, struct fd_event *fd
rec->ndone < sizeof(rec->header) + rec->header.length) {
/* receive the body, if any */
DATA_BLOB blob;
blob.length = 0;
status = socket_recv(rec->sock, rec,
&blob, sizeof(rec->header) + rec->header.length - rec->ndone, 0);
if (NT_STATUS_IS_ERR(status)) {