summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2011-09-27 09:50:11 -0700
committerAndrew Bartlett <abartlet@samba.org>2011-09-27 22:43:06 +0200
commit288265c049f3f0600bd89efa61185c16d36ab017 (patch)
treeae736fb39a7ec552bb242599e6f2be0b5f2faa7e
parentdce23151e01adcbecc55fae51f7c3f4d085c2c4b (diff)
downloadsamba-288265c049f3f0600bd89efa61185c16d36ab017.tar.gz
samba-288265c049f3f0600bd89efa61185c16d36ab017.tar.bz2
samba-288265c049f3f0600bd89efa61185c16d36ab017.zip
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
-rw-r--r--source3/lib/messages_local.c2
1 files changed, 1 insertions, 1 deletions
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);