mirror of
https://github.com/samba-team/samba.git
synced 2025-08-03 04:22:09 +03:00
The security descriptor in a PRINTER_INFO_2 could be NULL. (Bong?)
This commit is contained in:
@ -224,8 +224,12 @@ BOOL py_from_PRINTER_INFO_2(PyObject **dict, PRINTER_INFO_2 *info)
|
||||
|
||||
*dict = from_struct(info, py_PRINTER_INFO_2);
|
||||
|
||||
if (py_from_SECDESC(&obj, info->secdesc))
|
||||
PyDict_SetItemString(*dict, "security_descriptor", obj);
|
||||
/* The security descriptor could be NULL */
|
||||
|
||||
if (info->secdesc) {
|
||||
if (py_from_SECDESC(&obj, info->secdesc))
|
||||
PyDict_SetItemString(*dict, "security_descriptor", obj);
|
||||
}
|
||||
|
||||
/* Bong! The devmode could be NULL */
|
||||
|
||||
|
Reference in New Issue
Block a user