diff options
author | Günther Deschner <gd@samba.org> | 2010-09-10 16:55:23 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2010-09-10 17:11:12 +0200 |
commit | bf7ca3f5e7e6f126fd8baec5548dfd45bc5e168f (patch) | |
tree | 9c16a556dd7744bb508c9ad7988332ee75569a47 | |
parent | fc1a5dbffb1330bba0e4deebdf18b812ccc1a823 (diff) | |
download | samba-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
-rw-r--r-- | source3/rpc_server/srv_spoolss_nt.c | 3 |
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))); |