From e3de5e4fb6703976d7592b4dd8a52495a7deb951 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Fri, 20 Apr 2012 11:52:02 +0200 Subject: [PATCH] s3: Fix msg_channel in the cluster case --- source3/lib/msg_channel.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/source3/lib/msg_channel.c b/source3/lib/msg_channel.c index 65976d1170a..6b3295fc06d 100644 --- a/source3/lib/msg_channel.c +++ b/source3/lib/msg_channel.c @@ -329,16 +329,19 @@ static void msg_read_got_ctdb(struct tevent_req *subreq) return; } - ndr_err = ndr_push_struct_blob( + ndr_err = ndr_pull_struct_blob( &blob, state->rec, state->rec, - (ndr_push_flags_fn_t)ndr_push_messaging_rec); + (ndr_pull_flags_fn_t)ndr_pull_messaging_rec); if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) { - DEBUG(0, ("ndr_push_struct_blob failed: %s\n", + DEBUG(1, ("ndr_pull_struct_blob failed: %s\n", ndr_errstr(ndr_err))); tevent_req_error(req, ndr_map_error2errno(ndr_err)); return; } + if (DEBUGLEVEL >= 10) { + NDR_PRINT_DEBUG(messaging_rec, state->rec); + } if (state->rec->msg_type == state->channel->msg_type) { tevent_req_done(req); return; -- 2.11.4.GIT