summaryrefslogtreecommitdiffstats
path: root/net/iucv
diff options
context:
space:
mode:
authorEugene Crosser <Eugene.Crosser@ru.ibm.com>2015-12-11 12:27:50 +0100
committerDavid S. Miller <davem@davemloft.net>2015-12-14 16:16:44 -0500
commit0506eb01f70bd4d7e999c11488a6a892e01c42e2 (patch)
tree94e04318c2ec9f2f89be30e098ee34087785abee /net/iucv
parent5241c2d7c52757e6df79877ba282762df0caea9f (diff)
downloadop-kernel-dev-0506eb01f70bd4d7e999c11488a6a892e01c42e2.zip
op-kernel-dev-0506eb01f70bd4d7e999c11488a6a892e01c42e2.tar.gz
iucv: prevent information leak in iucv_message
Initialize storage for the future IUCV header that will be included in the transmitted packet. Some of the header fields are unused with HiperSockets transport, and will contain data left from some other functions. Signed-off-by: Eugene Crosser <Eugene.Crosser@ru.ibm.com> Signed-off-by: Ursula Braun <ubraun@linux.vnet.ibm.com> Reviewed-by: Thomas Richter <tmricht@linux.vnet.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/iucv')
-rw-r--r--net/iucv/af_iucv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/iucv/af_iucv.c b/net/iucv/af_iucv.c
index 3ea4c98..5bc473b 100644
--- a/net/iucv/af_iucv.c
+++ b/net/iucv/af_iucv.c
@@ -1031,7 +1031,7 @@ static int iucv_sock_sendmsg(struct socket *sock, struct msghdr *msg,
struct sock *sk = sock->sk;
struct iucv_sock *iucv = iucv_sk(sk);
struct sk_buff *skb;
- struct iucv_message txmsg;
+ struct iucv_message txmsg = {0};
struct cmsghdr *cmsg;
int cmsg_done;
long timeo;
OpenPOWER on IntegriCloud