diff options
author | Günther Deschner <gd@samba.org> | 2010-04-23 02:34:43 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2010-04-23 02:34:43 +0200 |
commit | 413ffe9adb8eea488133da0249dcb2eca08fd69d (patch) | |
tree | 8d34b55d301819f34fd27c7fa91028a22d0bff0e /source3/rpc_server | |
parent | f6bdfd94239baede6b485ca45ee8365f33fd3008 (diff) | |
download | samba-413ffe9adb8eea488133da0249dcb2eca08fd69d.tar.gz samba-413ffe9adb8eea488133da0249dcb2eca08fd69d.tar.bz2 samba-413ffe9adb8eea488133da0249dcb2eca08fd69d.zip |
s3-spoolss: fix some crash bugs and missing error codes in AddDriver paths.
Found by torture test.
Guenther
Diffstat (limited to 'source3/rpc_server')
-rw-r--r-- | source3/rpc_server/srv_spoolss_nt.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c index eec421f67a..72499d8ad0 100644 --- a/source3/rpc_server/srv_spoolss_nt.c +++ b/source3/rpc_server/srv_spoolss_nt.c @@ -7511,6 +7511,10 @@ WERROR _spoolss_AddPrinterDriverEx(pipes_struct *p, * i.e. only copy files that are newer than existing ones */ + if (r->in.flags == 0) { + return WERR_INVALID_PARAM; + } + if (r->in.flags != APD_COPY_NEW_FILES) { return WERR_ACCESS_DENIED; } |