mirror of
https://github.com/samba-team/samba.git
synced 2025-01-27 14:04:05 +03:00
s3-spoolss: Fixed a possible segfault in winreg_get_printer.
This commit is contained in:
parent
bb0226f10e
commit
6cd2f2ff31
@ -2140,7 +2140,7 @@ WERROR winreg_get_printer(TALLOC_CTX *mem_ctx,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Create the printername */
|
/* Create the printername */
|
||||||
if (info2->servername[0] != '\0') {
|
if (info2->servername != NULL && info2->servername[0] != '\0') {
|
||||||
if (lp_force_printername(snum)) {
|
if (lp_force_printername(snum)) {
|
||||||
const char *p = talloc_asprintf(info2, "%s\\%s",
|
const char *p = talloc_asprintf(info2, "%s\\%s",
|
||||||
info2->servername,
|
info2->servername,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user