mirror of
https://github.com/samba-team/samba.git
synced 2025-11-13 08:23:49 +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 commit is contained in:
committed by
Gerald (Jerry) Carter
parent
2c66a4098a
commit
f04232cce7
@@ -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_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->build = 1381;
|
||||
q_u->user_ctr.user.user1->major = 2;
|
||||
|
||||
Reference in New Issue
Block a user