SWAT not working anymore

Simo Sorce idra at samba.org
Sun Aug 12 09:19:23 GMT 2001


Sorry, it was my fault, the code was intended as you described
but I committed an old version of the code, thank you for spotting that.

On Sat, Aug 11, 2001 at 07:27:58PM +0200, Juergen Hasch wrote:
> 
> SWAT is not  working correctly in Samba 2.2 CVS. A recent changesin cgi.c 
> seem to be responsible.
> The following patch makes is work for me again:
> --- cgi.c.orig  Thu Aug  9 21:46:30 2001
> +++ cgi.c       Sat Aug 11 19:23:10 2001
> @@ -87,7 +87,7 @@
>  {
>         char *ret = NULL;
>         int i = 0;
> -       int len = 1024;
> +       int len = 0;
>  
>         while ((*cl)) {
>                 int c;
> @@ -96,7 +96,7 @@
>                         char *ret2;
>                         if (len == 0) len = 1024;
>                         else len *= 2;
> -                       ret2 = (char *)Realloc(ret, len*2);
> +                       ret2 = (char *)Realloc(ret, len);
>                         if (!ret2) return ret;
>                         ret = ret2;
>                 }
> 
> 
> ...Juergen
> 

-- 
Simo Sorce       idra at samba.org
-------------------------------
Samba Team http://www.samba.org




More information about the samba-technical mailing list