[SCM] Samba Shared Repository - branch master updated - 2865be8a1c1d928ad86453e6dbf1c2a3508ad127

Günther Deschner gd at samba.org
Wed Nov 19 20:57:42 GMT 2008


The branch, master has been updated
       via  2865be8a1c1d928ad86453e6dbf1c2a3508ad127 (commit)
      from  d53219704282bc6792416796dd6398875386243e (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 2865be8a1c1d928ad86453e6dbf1c2a3508ad127
Author: Günther Deschner <gd at samba.org>
Date:   Wed Nov 19 12:38:38 2008 +0100

    pidl: fix generated s3-server in,out,ref qualifiers that are used for buffer allocation.
    
    Guenther

-----------------------------------------------------------------------

Summary of changes:
 pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm b/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm
index e5d8f1c..eb3cdf2 100644
--- a/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm
+++ b/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm
@@ -142,6 +142,13 @@ sub ParseFunction($$)
 		my @dir = @{$_->{DIRECTION}};
 		if (grep(/in/, @dir) and grep(/out/, @dir)) {
 			pidl "r->out.$_->{NAME} = r->in.$_->{NAME};";
+		}
+	}
+
+	foreach (@{$fn->{ELEMENTS}}) {
+		my @dir = @{$_->{DIRECTION}};
+		if (grep(/in/, @dir) and grep(/out/, @dir)) {
+			# noop
 		} elsif (grep(/out/, @dir) and not
 				 has_property($_, "represent_as")) {
 			AllocOutVar($_, "r", "r->out.$_->{NAME}", $env);


-- 
Samba Shared Repository


More information about the samba-cvs mailing list