From: Gerald Carter Date: Tue, 26 Apr 2005 14:42:48 +0000 (+0000) Subject: r6491: BUG 2653: patch from Olaf Imig ; allocate memory for user1... X-Git-Tag: samba-misc-tags/initial-v3-0-unstable~4910 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f04232cce7f940814828caf80a2ecb8761146b14;p=thirdparty%2Fsamba.git r6491: BUG 2653: patch from Olaf Imig ; allocate memory for user1* in make_spoolss_q_open_printer_ex() --- diff --git a/source/rpc_parse/parse_spoolss.c b/source/rpc_parse/parse_spoolss.c index 78602dd806a..160d9c78b1a 100644 --- a/source/rpc_parse/parse_spoolss.c +++ b/source/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;