diff options
-rw-r--r-- | source3/rpc_server/spoolss/srv_spoolss_nt.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source3/rpc_server/spoolss/srv_spoolss_nt.c b/source3/rpc_server/spoolss/srv_spoolss_nt.c index 2778ba8ca87..e30c70b4b3f 100644 --- a/source3/rpc_server/spoolss/srv_spoolss_nt.c +++ b/source3/rpc_server/spoolss/srv_spoolss_nt.c @@ -9729,12 +9729,6 @@ WERROR _spoolss_GetPrinterDataEx(struct pipes_struct *p, goto done; } - /* check to see if the keyname is valid */ - if (!strlen(r->in.key_name)) { - result = WERR_INVALID_PARAM; - goto done; - } - /* Is the handle to a printer or to the server? */ if (Printer->printer_type == SPLHND_SERVER) { @@ -9765,6 +9759,12 @@ WERROR _spoolss_GetPrinterDataEx(struct pipes_struct *p, goto done; } + /* check to see if the keyname is valid */ + if (!strlen(r->in.key_name)) { + result = WERR_INVALID_PARAM; + goto done; + } + if (!get_printer_snum(p, r->in.handle, &snum, NULL)) { result = WERR_BADFID; goto done; |