|
@@ -787,10 +787,9 @@ int start_dhcp ( struct job_interface *job, struct net_device *netdev,
|
787
|
787
|
int rc;
|
788
|
788
|
|
789
|
789
|
/* Allocate and initialise structure */
|
790
|
|
- dhcp = malloc ( sizeof ( *dhcp ) );
|
|
790
|
+ dhcp = zalloc ( sizeof ( *dhcp ) );
|
791
|
791
|
if ( ! dhcp )
|
792
|
792
|
return -ENOMEM;
|
793
|
|
- memset ( dhcp, 0, sizeof ( *dhcp ) );
|
794
|
793
|
dhcp->refcnt.free = dhcp_free;
|
795
|
794
|
job_init ( &dhcp->job, &dhcp_job_operations, &dhcp->refcnt );
|
796
|
795
|
xfer_init ( &dhcp->xfer, &dhcp_xfer_operations, &dhcp->refcnt );
|