1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-27 14:04:05 +03:00

Crash fixes:

- fix a crash when a second NTLMSSP session tried to free the first
 - fix a crash due to some NULL pointers in the Add Printer Wizard (or read
   printer code too it appears).  As far as I can tell it's just that the
   GUID just might not exist.

Andrew Bartlett
This commit is contained in:
Andrew Bartlett -
parent 1e33083fe6
commit 51b1413056
2 changed files with 8 additions and 2 deletions

View File

@ -58,6 +58,7 @@ NTSTATUS ntlmssp_server_end(NTLMSSP_STATE **ntlmssp_state)
}
talloc_destroy(mem_ctx);
*ntlmssp_state = NULL;
return NT_STATUS_OK;
}

View File

@ -2738,9 +2738,14 @@ BOOL is_printer_published(int snum, GUID *guid)
SPOOL_DSSPOOLER_KEY)) < 0)
return False;
ctr = &printer->info_2->data.keys[i].values;
if (!(ctr = &printer->info_2->data.keys[i].values)) {
return False;
}
if (!(guid_val = regval_ctr_getvalue(ctr, "objectGUID"))) {
return False;
}
guid_val = regval_ctr_getvalue(ctr, "objectGUID");
if (regval_size(guid_val) == sizeof(GUID))
memcpy(guid, regval_data_p(guid_val), sizeof(GUID));