mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +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) {
|
||||
$self->pidl("if ($py_var == NULL) {");
|
||||
$self->indent;
|
||||
$self->pidl("PyErr_Format(PyExc_AttributeError, \"Cannot delete NDR object: " .
|
||||
mapTypeName($var_name) . "\");");
|
||||
$self->pidl("PyErr_Format(PyExc_AttributeError, \"Cannot delete NDR object: $var_name\");");
|
||||
$self->pidl($fail);
|
||||
$self->deindent;
|
||||
$self->pidl("}");
|
||||
|
Loading…
Reference in New Issue
Block a user