1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

lib:printer_driver: Check return value of gp_inifile_enum_section() (CID 1444835)

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Joseph Sutton 2023-10-06 15:40:23 +13:00 committed by Andrew Bartlett
parent 03ca8c25d0
commit fe86989fcc

View File

@ -387,6 +387,9 @@ static NTSTATUS enum_devices_in_toc(struct gp_inifile_context *ctx,
status = gp_inifile_enum_section(ctx, decorated_models_section_name,
&num_devices, &devices,
&device_values);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
for (d = 0; d < num_devices; d++) {
DEBUG(11,("processing device: %s\n",