[PATCH] Initial work on automatically reallocated buffer size for CSD script

David Woodhouse dwmw2 at infradead.org
Mon Feb 22 08:48:03 EST 2010


On Fri, 2010-02-12 at 00:39 +0100, Adam Piątyszek wrote:
> @@ -776,6 +800,7 @@ static int proxy_write(int fd, unsigned char *buf,
> size_t len)
>  
>                 count += i;
>         }
> +       free(buf);
>         return 0;
>  }

That one's a bug too; 'buf' is usually static, on the stack of the
caller. It's not for the proxy_write() function to free it.

-- 
David Woodhouse                            Open Source Technology Centre
David.Woodhouse at intel.com                              Intel Corporation




More information about the openconnect-devel mailing list