mirror of
https://github.com/samba-team/samba.git
synced 2025-02-04 17:47:26 +03:00
r6491: BUG 2653: patch from Olaf Imig <Olaf.Imig@bifab.de>; allocate memory for user1* in make_spoolss_q_open_printer_ex()
(This used to be commit f04232cce7f940814828caf80a2ecb8761146b14)
This commit is contained in:
parent
fd237d9903
commit
d65f313fa7
@ -911,7 +911,8 @@ BOOL make_spoolss_q_open_printer_ex(SPOOL_Q_OPEN_PRINTER_EX *q_u,
|
|||||||
|
|
||||||
q_u->user_switch = 1;
|
q_u->user_switch = 1;
|
||||||
|
|
||||||
q_u->user_ctr.level = 1;
|
q_u->user_ctr.level = 1;
|
||||||
|
q_u->user_ctr.user.user1 = TALLOC_P( get_talloc_ctx(), SPOOL_USER_1 );
|
||||||
q_u->user_ctr.user.user1->size = strlen(clientname) + strlen(user_name) + 10;
|
q_u->user_ctr.user.user1->size = strlen(clientname) + strlen(user_name) + 10;
|
||||||
q_u->user_ctr.user.user1->build = 1381;
|
q_u->user_ctr.user.user1->build = 1381;
|
||||||
q_u->user_ctr.user.user1->major = 2;
|
q_u->user_ctr.user.user1->major = 2;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user