mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
pidl: Do not call mapTypeName() on expression
$var_name is not a type name, but an expression, such as ‘r->in.server’. mapTypeName() will turn this into ‘struct r->in.server’, which makes no sense. Signed-off-by: Jo Sutton <josutton@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
2d3712906d
commit
f2a3c186c3
@ -1925,8 +1925,7 @@ sub ConvertObjectFromPythonLevel($$$$$$$$$)
|
|||||||
if ($recurse == 0) {
|
if ($recurse == 0) {
|
||||||
$self->pidl("if ($py_var == NULL) {");
|
$self->pidl("if ($py_var == NULL) {");
|
||||||
$self->indent;
|
$self->indent;
|
||||||
$self->pidl("PyErr_Format(PyExc_AttributeError, \"Cannot delete NDR object: " .
|
$self->pidl("PyErr_Format(PyExc_AttributeError, \"Cannot delete NDR object: $var_name\");");
|
||||||
mapTypeName($var_name) . "\");");
|
|
||||||
$self->pidl($fail);
|
$self->pidl($fail);
|
||||||
$self->deindent;
|
$self->deindent;
|
||||||
$self->pidl("}");
|
$self->pidl("}");
|
||||||
|
Loading…
Reference in New Issue
Block a user