Patch/Bugfix for BOOTP in rtems-ss-20020205

Chris Johns cjohns at cybertec.com.au
Tue Mar 19 11:02:26 UTC 2002


Thomas Doerfler wrote:
> 
> Attached is a patch to fix it. Any comments?
> 
>   ------------------------------------------------------------------------
> --- rtems-ss-20020205/c/src/libnetworking/nfs/bootp_subr.c      Wed Sep 19 19:30:38 2001
> +++ /usr/local/projects/sandbox/zem40/rtems_patch/bootp_subr.c  Mon Mar 18 21:34:08 2002
> @@ -902,12 +902,16 @@
>      if (rtems_create_root_fs () < 0) {
>        printf("Error creating the root filesystem.\nFile not created.\n");
>        update_files = 0;
>      }
> 
> -  memset(dhcp_hostname, 0, sizeof(dhcp_hostname));
> -
> +#if 0
> +  memset(dhcp_hostname, 0, sizeof(dhcp_hostname));
> +#else
> +  dhcp_hostname = NULL;
> +#endif
> +

Should this be:

  if (dhcp_hostname)
    free (dhcp_hostname);


-- 
 Chris Johns, cjohns at cybertec.com.au



More information about the users mailing list