[Samba] Printing eats my CPU

Franz Sirl Franz.Sirl-kernel at lauterbach.com
Mon Jul 29 10:23:32 GMT 2002

At 14:49 29.07.2002, Gerald Carter wrote:
>On Mon, 29 Jul 2002, Franz Sirl wrote:
> > Franz.
> >
> >          * rpc_server/srv_spoolss_nt.c (_spoolss_enumprinterdataex): Don't
> > try to allocate 0 bytes.
>Actulayy...try this patch (modified your original one a little
>to make sure the pointer was NULL if no memory was allocated).

Your patch works equally well here.

>I'm not sure, but I have a gut feeling the marshalling routine
>may need to be modified to deal with data of length 0.   But I
>really need to see a trace from 2k -> 2k for this.  I'll leave it
>alone for now.

The code in convert_specific_param() handles the length in the same way, so 
I thought it's safe.


More information about the samba mailing list