r6578: brown paper bag time with the new messaging code ....
authorAndrew Tridgell <tridge@samba.org>
Mon, 2 May 2005 15:58:03 +0000 (15:58 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:16:27 +0000 (13:16 -0500)
source/lib/messaging/messaging.c

index c95028bea5e0a84c7a50e08e0481656671ccb278..2130958b366a67981ea2ce6054ae50cd226c9f31 100644 (file)
@@ -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;