diff --git a/lib/libatm/ioctl_subr.c b/lib/libatm/ioctl_subr.c index 08968d36e29d..bc600f2c7aab 100644 --- a/lib/libatm/ioctl_subr.c +++ b/lib/libatm/ioctl_subr.c @@ -109,6 +109,7 @@ do_info_ioctl(req, buf_len) errno = ENOMEM; return(-1); } + bzero(buf, buf_len); /* * Set the buffer address and length in the request @@ -331,6 +332,7 @@ verify_nif_name(name) errno = ENOMEM; return(-1); } + bzero(nif_info, sizeof(struct air_netif_rsp)); /* * Set up the request