Revert "s3: Do not reference the ndr_tables in the server calls directly"
[samba.git] / pidl / lib / Parse / Pidl / Samba3 / ServerNDR.pm
index 560f28d0e3a7e970219032bb4342a0215aae85d8..fca55563abc1aa5a5a69a85d3cc7f56a121e85dd 100644 (file)
@@ -148,7 +148,7 @@ sub ParseFunction($$)
        pidl "DATA_BLOB blob;";
        pidl "struct $fn->{NAME} *r;";
        pidl "";
-       pidl "call = &p->interface->calls[$op];";
+       pidl "call = &ndr_table_$if->{NAME}.calls[$op];";
        pidl "";
        pidl "r = talloc(talloc_tos(), struct $fn->{NAME});";
        pidl "if (r == NULL) {";