mirror of
https://github.com/samba-team/samba.git
synced 2025-07-29 15:42:04 +03:00
More cleanups of validation functions.
(This used to be commit a4790ba42c
)
This commit is contained in:
@ -74,6 +74,11 @@ BOOL py_to_FORM(FORM *form, PyObject *dict)
|
||||
if (!to_struct(form, dict_copy, py_FORM))
|
||||
goto done;
|
||||
|
||||
/* Careful! We can't call PyString_AsString(obj) then delete
|
||||
obj and still expect to have our pointer pointing somewhere
|
||||
useful. */
|
||||
|
||||
obj = PyDict_GetItemString(dict, "name");
|
||||
name = PyString_AsString(obj);
|
||||
|
||||
init_unistr2(&form->name, name, strlen(name) + 1);
|
||||
|
Reference in New Issue
Block a user