diff options
author | Stefan Metzmacher <metze@samba.org> | 2008-07-16 12:58:29 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2008-07-16 14:42:06 +0200 |
commit | a24fb2b537a57c308385de9fe5149e29740d1d1b (patch) | |
tree | 6d14a234ba2c9ea591a36292d30db2e8a1dba6c3 /source4/libnet | |
parent | c6ea7f02217fc28dc30882d3f9d543b805de2d74 (diff) | |
download | samba-a24fb2b537a57c308385de9fe5149e29740d1d1b.tar.gz samba-a24fb2b537a57c308385de9fe5149e29740d1d1b.tar.bz2 samba-a24fb2b537a57c308385de9fe5149e29740d1d1b.zip |
drsuapi: get ctr6 out of xpress compressed level
metze
(This used to be commit 4e0708148a121bd41a12abf6122d5d6f3f09667a)
Diffstat (limited to 'source4/libnet')
-rw-r--r-- | source4/libnet/libnet_become_dc.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/libnet/libnet_become_dc.c b/source4/libnet/libnet_become_dc.c index 3a437db440..556a51e8af 100644 --- a/source4/libnet/libnet_become_dc.c +++ b/source4/libnet/libnet_become_dc.c @@ -2454,6 +2454,11 @@ static WERROR becomeDC_drsuapi_pull_partition_recv(struct libnet_BecomeDC_state r->out.ctr.ctr7.type == DRSUAPI_COMPRESSION_TYPE_MSZIP) { ctr_level = 6; ctr6 = r->out.ctr.ctr7.ctr.mszip6.ctr6; + } else if (*r->out.level == 7 && + r->out.ctr.ctr7.level == 6 && + r->out.ctr.ctr7.type == DRSUAPI_COMPRESSION_TYPE_XPRESS) { + ctr_level = 6; + ctr6 = r->out.ctr.ctr7.ctr.xpress6.ctr6; } else { return WERR_BAD_NET_RESP; } |