From 288265c049f3f0600bd89efa61185c16d36ab017 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Tue, 27 Sep 2011 09:50:11 -0700 Subject: s3-messaging Ensure that the message is of the correct legnth By using ndr_pull_struct_blob_all we are more robust against wrongly formatted messages. Andrew Bartlett --- source3/lib/messages_local.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3') diff --git a/source3/lib/messages_local.c b/source3/lib/messages_local.c index 455f3d3476..346cd30b5b 100644 --- a/source3/lib/messages_local.c +++ b/source3/lib/messages_local.c @@ -200,7 +200,7 @@ static NTSTATUS messaging_tdb_fetch(TDB_CONTEXT *msg_tdb, blob = data_blob_const(data.dptr, data.dsize); - ndr_err = ndr_pull_struct_blob( + ndr_err = ndr_pull_struct_blob_all( &blob, result, result, (ndr_pull_flags_fn_t)ndr_pull_messaging_array); -- cgit