diff options
author | Gerald Carter <jerry@samba.org> | 2005-04-26 14:42:48 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 10:56:43 -0500 |
commit | d65f313fa742d8cb34a36a7a4699fba6c0b744f3 (patch) | |
tree | 491cf4fbc1a900f25cd14f0512e80331e02d5173 | |
parent | fd237d99031d2903e62364fbafcff2b57636a9f6 (diff) | |
download | samba-d65f313fa742d8cb34a36a7a4699fba6c0b744f3.tar.gz samba-d65f313fa742d8cb34a36a7a4699fba6c0b744f3.tar.bz2 samba-d65f313fa742d8cb34a36a7a4699fba6c0b744f3.zip |
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)
-rw-r--r-- | source3/rpc_parse/parse_spoolss.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/rpc_parse/parse_spoolss.c b/source3/rpc_parse/parse_spoolss.c index 78602dd806..160d9c78b1 100644 --- a/source3/rpc_parse/parse_spoolss.c +++ b/source3/rpc_parse/parse_spoolss.c @@ -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; |