diff options
author | Günther Deschner <gd@samba.org> | 2009-03-18 21:54:26 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2009-03-18 21:57:07 +0100 |
commit | a1256594b047061d5fce8b7b4234dc725462392d (patch) | |
tree | a2a6f159aeee448ce0f5acabecd940b54ff49f83 | |
parent | 43182fdff89bc5c238e7a90cf93500cef850ecd5 (diff) | |
download | samba-a1256594b047061d5fce8b7b4234dc725462392d.tar.gz samba-a1256594b047061d5fce8b7b4234dc725462392d.tar.bz2 samba-a1256594b047061d5fce8b7b4234dc725462392d.zip |
s3-spoolss: fix _spoolss_GetPrinterData printerserver handle query error code.
When _spoolss_GetPrinterData receives a query on a printserver handle for a
value that we have not stored or do not provide, we need to return
WERR_INVALID_PARAM, not WERR_BADFILE. Tested with w2k and w2k3 servers.
Found by torture test.
Guenther
-rw-r--r-- | source3/rpc_server/srv_spoolss_nt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c index 5e1c53905a..b825cefa39 100644 --- a/source3/rpc_server/srv_spoolss_nt.c +++ b/source3/rpc_server/srv_spoolss_nt.c @@ -2482,7 +2482,7 @@ static WERROR getprinterdata_printer_server(TALLOC_CTX *mem_ctx, return WERR_OK; } - return WERR_BADFILE; + return WERR_INVALID_PARAM; } /**************************************************************** |