Skip to content
Snippets Groups Projects
Commit 62712056 authored by Guy Zana's avatar Guy Zana
Browse files

bsd: zero a few uninitialized structures

this haven't caused a real bug, I just noticed it while tracing.
it may be dangerous if in some flow, the stack will not be zeroed
parent 91db62cf
No related branches found
No related tags found
No related merge requests found
......@@ -495,7 +495,7 @@ kern_sendit(int s,
ssize_t *bytes)
{
struct file *fp;
struct uio auio;
struct uio auio = {};
struct iovec *iov;
struct socket *so;
struct bsd_sockaddr *from = 0;
......@@ -548,8 +548,8 @@ int
sys_sendto(int s, caddr_t buf, size_t len, int flags, caddr_t to, int tolen,
ssize_t* bytes)
{
struct msghdr msg;
struct iovec aiov;
struct msghdr msg = {};
struct iovec aiov = {};
int error;
msg.msg_name = to;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment