From: Andrew Bartlett Date: Tue, 27 Sep 2011 16:50:11 +0000 (-0700) Subject: s3-messaging Ensure that the message is of the correct legnth X-Git-Tag: ldb-1.1.3~173 X-Git-Url: http://git.samba.org/samba.git/?p=kai%2Fsamba-autobuild%2F.git;a=commitdiff_plain;h=288265c049f3f0600bd89efa61185c16d36ab017 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 --- diff --git a/source3/lib/messages_local.c b/source3/lib/messages_local.c index 455f3d34766..346cd30b5b8 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);