diff options
author | Jeremy Allison <jra@samba.org> | 2000-06-20 23:58:56 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2000-06-20 23:58:56 +0000 |
commit | 69c75c8a165f05c01d13ba4eddbb970540e44b96 (patch) | |
tree | f509c0ff30d6f7550419302f199f5f65023d3cab /source3/rpc_server | |
parent | a69d47640cb150fbffa12dee68ead34a5b1931bb (diff) | |
download | samba-69c75c8a165f05c01d13ba4eddbb970540e44b96.tar.gz samba-69c75c8a165f05c01d13ba4eddbb970540e44b96.tar.bz2 samba-69c75c8a165f05c01d13ba4eddbb970540e44b96.zip |
Fixes for Win2k "add printer driver" INFO_LEVEL_6 was wrong, also some
memory fixes.
Jeremy.
(This used to be commit 2a9e645cbddef1cddc5c978310b7efed492758d2)
Diffstat (limited to 'source3/rpc_server')
-rwxr-xr-x | source3/rpc_server/srv_spoolss.c | 1 | ||||
-rw-r--r-- | source3/rpc_server/srv_spoolss_nt.c | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/source3/rpc_server/srv_spoolss.c b/source3/rpc_server/srv_spoolss.c index 61e5341c75..a7a63fed89 100755 --- a/source3/rpc_server/srv_spoolss.c +++ b/source3/rpc_server/srv_spoolss.c @@ -876,6 +876,7 @@ static BOOL api_spoolss_addprinterdriver(pipes_struct *p) if(!spoolss_io_q_addprinterdriver("", &q_u, data, 0)) { DEBUG(0,("spoolss_io_q_addprinterdriver: unable to unmarshall SPOOL_Q_ADDPRINTERDRIVER.\n")); + free_spoolss_q_addprinterdriver(&q_u); return False; } diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c index 90536daedf..8cff8d68d9 100644 --- a/source3/rpc_server/srv_spoolss_nt.c +++ b/source3/rpc_server/srv_spoolss_nt.c @@ -577,11 +577,11 @@ static BOOL convert_printer_driver_info(const SPOOL_PRINTER_DRIVER_INFO_LEVEL *u switch (level) { case 3: printer->info_3=NULL; - uni_2_asc_printer_driver_3(uni->info_3, &(printer->info_3)); + uni_2_asc_printer_driver_3(uni->info_3, &printer->info_3); break; case 6: printer->info_6=NULL; - uni_2_asc_printer_driver_6(uni->info_6, &(printer->info_6)); + uni_2_asc_printer_driver_6(uni->info_6, &printer->info_6); break; default: break; |