pidl:Samba4/NDR/Parser: fix ndr_pull/ndr_push mismatch
authorStefan Metzmacher <metze@samba.org>
Tue, 1 Feb 2011 12:10:04 +0000 (13:10 +0100)
committerStefan Metzmacher <metze@samba.org>
Thu, 3 Feb 2011 01:49:21 +0000 (02:49 +0100)
metze
(cherry picked from commit 34b7b552e85fddedf012af90eb13a4cfdcc16a74)

pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm

index 81a2d9acc0e0bbc6fe33b8a271fcd6d81af5dc58..0847d82159d7de0edb6695530fb92d70c774512d 100644 (file)
@@ -1857,7 +1857,7 @@ sub ParseUnionPullPrimitives($$$$$)
        if (defined($e->{ALIGN})) {
                if ($e->{IS_MS_UNION}) {
                        $self->pidl("/* ms_union is always aligned to the largest union arm*/");
-                       $self->pidl("NDR_CHECK(ndr_push_align($ndr, $e->{ALIGN}));");
+                       $self->pidl("NDR_CHECK(ndr_pull_align($ndr, $e->{ALIGN}));");
                } else {
                        $self->pidl("NDR_CHECK(ndr_pull_union_align($ndr, $e->{ALIGN}));");
                }