--- a/net/ipv4/raw.c
+++ b/net/ipv4/raw.c
@@ -387,6 +387,7 @@ static int raw_sendmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg,
 	u8  tos;
 	int err;
 
+	memset(&ipc, 0, sizeof(ipc));
 	err = -EMSGSIZE;
 	if (len > 0xFFFF)
 		goto out;
