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:
parent
1e33083fe6
commit
51b1413056
@ -58,6 +58,7 @@ NTSTATUS ntlmssp_server_end(NTLMSSP_STATE **ntlmssp_state)
|
||||
}
|
||||
|
||||
talloc_destroy(mem_ctx);
|
||||
*ntlmssp_state = NULL;
|
||||
return NT_STATUS_OK;
|
||||
}
|
||||
|
||||
|
@ -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));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user