Vista and adding printer drivers

Jeremy Allison jra at samba.org
Mon Jan 29 22:50:50 GMT 2007


On Mon, Jan 29, 2007 at 03:47:27PM +0100, Martin Zielinski wrote:
> Update: this works for me:
> 
> --- samba-3.0.23d.orig/source/rpc_server/srv_spoolss.c  2006-04-20 
> 04:29:27.000000000 +0200
> +++ samba-3.0.23d/source/rpc_server/srv_spoolss.c       2007-01-29 
> 14:01:59.000000000 +0100
> @@ -1478,6 +1478,11 @@
> 
>         if(!spoolss_io_q_addprinterdriverex("", &q_u, data, 0)) {
>                 DEBUG(0,("spoolss_io_q_addprinterdriverex: unable to 
> unmarshall SPOOL_Q_ADDPRINTERDRIVEREX.\n"));
> +               if (q_u.level != 3 && q_u.level != 6) {
> +                       setup_fault_pdu(p, 
> NT_STATUS(DCERPC_FAULT_INVALID_TAG));
> +                       return True;
> +               }
> +
>                 return False;
>         }
> 

Great catch, I've added this for 3.0.24.

Thanks !

Jeremy.


More information about the samba-technical mailing list