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>
Tue, 1 Feb 2011 17:35:22 +0000 (18:35 +0100)
metze

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

index 69c13866250f6d997da62a32e7a36d1e6a50fc4a..075ad8516eb2b93951f7381db76dfda0cddd1f90 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}));");
                }