diff options
author | Günther Deschner <gd@samba.org> | 2005-07-12 23:52:32 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:00:04 -0500 |
commit | 40035db926c66f849df4111736b4d3db3a98e249 (patch) | |
tree | df17633aaa2d524ea13ccca121d78afc8c5161d5 /source3 | |
parent | 36f0225e5f5aa4987e0d759fdd62a7a6b95b31b3 (diff) | |
download | samba-40035db926c66f849df4111736b4d3db3a98e249.tar.gz samba-40035db926c66f849df4111736b4d3db3a98e249.tar.xz samba-40035db926c66f849df4111736b4d3db3a98e249.zip |
r8398: Fix segfault in the client addprinterex-call. Found with "net rpc
printer"-functions.
Thanks to Thomas Di Naro (Novell) for the detailed debug-logs.
Guenther
(This used to be commit b532553b064f1e9893b39dda903d458055c11f86)
Diffstat (limited to 'source3')
-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 34e3f8fe355..8050712d978 100644 --- a/source3/rpc_parse/parse_spoolss.c +++ b/source3/rpc_parse/parse_spoolss.c @@ -945,7 +945,8 @@ BOOL make_spoolss_q_addprinterex( TALLOC_CTX *mem_ctx, SPOOL_Q_ADDPRINTEREX *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->build = 1381; q_u->user_ctr.user.user1->major = 2; q_u->user_ctr.user.user1->minor = 0; |