summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2005-10-27 12:45:10 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:05:12 -0500
commit354124efb76cb16a511ed0f2f451170830b1a9f2 (patch)
tree50adb1a321e7a4df8f966bb7b64ef544de2744af
parentb577787ee314e2e62f8e4ab6692fbe785f5861d2 (diff)
downloadsamba-354124efb76cb16a511ed0f2f451170830b1a9f2.tar.gz
samba-354124efb76cb16a511ed0f2f451170830b1a9f2.tar.bz2
samba-354124efb76cb16a511ed0f2f451170830b1a9f2.zip
r11326: Fix alignment in getdc response
(This used to be commit 9741818d2c54240ef1f38762396828adceb92b2a)
-rw-r--r--source3/rpc_parse/parse_net.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/rpc_parse/parse_net.c b/source3/rpc_parse/parse_net.c
index 401daea39c..a32edd4384 100644
--- a/source3/rpc_parse/parse_net.c
+++ b/source3/rpc_parse/parse_net.c
@@ -557,6 +557,9 @@ BOOL net_io_r_getdcname(const char *desc, NET_R_GETDCNAME *r_t, prs_struct *ps,
r_t->ptr_dcname, ps, depth))
return False;
+ if (!prs_align(ps))
+ return False;
+
if (!prs_ntstatus("status", ps, depth, &r_t->status))
return False;