]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
r6491: BUG 2653: patch from Olaf Imig <Olaf.Imig@bifab.de>; allocate memory for user1...
authorGerald Carter <jerry@samba.org>
Tue, 26 Apr 2005 14:42:48 +0000 (14:42 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 15:56:43 +0000 (10:56 -0500)
source/rpc_parse/parse_spoolss.c

index 78602dd806a5bc88e5e9890ba04797ce6dd020f7..160d9c78b1a10ec53783a554002bee43c63dd777 100644 (file)
@@ -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;