diff options
author | Simo Sorce <idra@samba.org> | 2005-11-09 08:23:33 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:45:56 -0500 |
commit | 56415ccacb8bc40ef8aab9cf440d5a30badd4eba (patch) | |
tree | 012a9b9ccbb9aca0b3b65327634292087c15ac7b /source4 | |
parent | 1c07c25322802eef7b57dda3975baca6c9114c83 (diff) | |
download | samba-56415ccacb8bc40ef8aab9cf440d5a30badd4eba.tar.gz samba-56415ccacb8bc40ef8aab9cf440d5a30badd4eba.tar.bz2 samba-56415ccacb8bc40ef8aab9cf440d5a30badd4eba.zip |
r11597: revert a commit by mistake
(This used to be commit 09e6f494b490127ace1a9d1077c2757d813abc55)
Diffstat (limited to 'source4')
-rw-r--r-- | source4/rpc_server/spoolss/dcesrv_spoolss.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/source4/rpc_server/spoolss/dcesrv_spoolss.c b/source4/rpc_server/spoolss/dcesrv_spoolss.c index c15a7f1d8a..6936866fcc 100644 --- a/source4/rpc_server/spoolss/dcesrv_spoolss.c +++ b/source4/rpc_server/spoolss/dcesrv_spoolss.c @@ -538,6 +538,8 @@ static WERROR spoolss_GetPrinterData(struct dcesrv_call_state *dce_call, TALLOC_ DCESRV_PULL_HANDLE_WERR(h, r->in.handle, DCESRV_HANDLE_ANY); handle = talloc_get_type(h->data, struct ntptr_GenericHandle); + if (!handle) + return WERR_BADFID; switch (handle->type) { case NTPTR_HANDLE_SERVER: @@ -609,6 +611,8 @@ static WERROR spoolss_AddForm(struct dcesrv_call_state *dce_call, TALLOC_CTX *me DCESRV_PULL_HANDLE_WERR(h, r->in.handle, DCESRV_HANDLE_ANY); handle = talloc_get_type(h->data, struct ntptr_GenericHandle); + if (!handle) + return WERR_BADFID; switch (handle->type) { case NTPTR_HANDLE_SERVER: @@ -639,6 +643,8 @@ static WERROR spoolss_DeleteForm(struct dcesrv_call_state *dce_call, TALLOC_CTX DCESRV_PULL_HANDLE_WERR(h, r->in.handle, DCESRV_HANDLE_ANY); handle = talloc_get_type(h->data, struct ntptr_GenericHandle); + if (!handle) + return WERR_BADFID; switch (handle->type) { case NTPTR_HANDLE_SERVER: @@ -669,6 +675,8 @@ static WERROR spoolss_GetForm(struct dcesrv_call_state *dce_call, TALLOC_CTX *me DCESRV_PULL_HANDLE_WERR(h, r->in.handle, DCESRV_HANDLE_ANY); handle = talloc_get_type(h->data, struct ntptr_GenericHandle); + if (!handle) + return WERR_BADFID; switch (handle->type) { case NTPTR_HANDLE_SERVER: @@ -702,6 +710,8 @@ static WERROR spoolss_SetForm(struct dcesrv_call_state *dce_call, TALLOC_CTX *me DCESRV_PULL_HANDLE_WERR(h, r->in.handle, DCESRV_HANDLE_ANY); handle = talloc_get_type(h->data, struct ntptr_GenericHandle); + if (!handle) + return WERR_BADFID; switch (handle->type) { case NTPTR_HANDLE_SERVER: @@ -732,6 +742,8 @@ static WERROR spoolss_EnumForms(struct dcesrv_call_state *dce_call, TALLOC_CTX * DCESRV_PULL_HANDLE_WERR(h, r->in.handle, DCESRV_HANDLE_ANY); handle = talloc_get_type(h->data, struct ntptr_GenericHandle); + if (!handle) + return WERR_BADFID; switch (handle->type) { case NTPTR_HANDLE_SERVER: |