summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/lib/messaging/messaging.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/lib/messaging/messaging.c b/source4/lib/messaging/messaging.c
index c95028bea5..2130958b36 100644
--- a/source4/lib/messaging/messaging.c
+++ b/source4/lib/messaging/messaging.c
@@ -156,7 +156,7 @@ static void messaging_recv_handler(struct event_context *ev, struct fd_event *fd
return;
}
- rec->data = data_blob_talloc(rec, data, rec->header.length);
+ rec->data = data_blob_talloc(rec, data+sizeof(rec->header), rec->header.length);
if (rec->data.data == NULL) {
talloc_free(rec);
return;