summaryrefslogtreecommitdiff
path: root/source3/rpc_server
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2010-09-10 16:55:23 +0200
committerGünther Deschner <gd@samba.org>2010-09-10 17:11:12 +0200
commitbf7ca3f5e7e6f126fd8baec5548dfd45bc5e168f (patch)
tree9c16a556dd7744bb508c9ad7988332ee75569a47 /source3/rpc_server
parentfc1a5dbffb1330bba0e4deebdf18b812ccc1a823 (diff)
downloadsamba-bf7ca3f5e7e6f126fd8baec5548dfd45bc5e168f.tar.gz
samba-bf7ca3f5e7e6f126fd8baec5548dfd45bc5e168f.tar.bz2
samba-bf7ca3f5e7e6f126fd8baec5548dfd45bc5e168f.zip
s3-spoolss: Fix _spoolss_GetPrinter().
In the error case, we need to TALLOC_FREE(r->out.info), don't ask :-) Guenther
Diffstat (limited to 'source3/rpc_server')
-rw-r--r--source3/rpc_server/srv_spoolss_nt.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c
index b5e2ddbdc6..881f0e5555 100644
--- a/source3/rpc_server/srv_spoolss_nt.c
+++ b/source3/rpc_server/srv_spoolss_nt.c
@@ -4533,7 +4533,7 @@ WERROR _spoolss_GetPrinter(struct pipes_struct *p,
lp_const_servicename(snum),
&info2);
if (!W_ERROR_IS_OK(result)) {
- return result;
+ goto out;
}
switch (r->in.level) {
@@ -4584,6 +4584,7 @@ WERROR _spoolss_GetPrinter(struct pipes_struct *p,
break;
}
+ out:
if (!W_ERROR_IS_OK(result)) {
DEBUG(0, ("_spoolss_GetPrinter: failed to construct printer info level %d - %s\n",
r->in.level, win_errstr(result)));