diff options
Diffstat (limited to 'net/irda/af_irda.c')
-rw-r--r-- | net/irda/af_irda.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/irda/af_irda.c b/net/irda/af_irda.c index cb762c8723ea..3ec2b434ea75 100644 --- a/net/irda/af_irda.c +++ b/net/irda/af_irda.c | |||
@@ -714,6 +714,7 @@ static int irda_getname(struct socket *sock, struct sockaddr *uaddr, | |||
714 | struct sock *sk = sock->sk; | 714 | struct sock *sk = sock->sk; |
715 | struct irda_sock *self = irda_sk(sk); | 715 | struct irda_sock *self = irda_sk(sk); |
716 | 716 | ||
717 | memset(&saddr, 0, sizeof(saddr)); | ||
717 | if (peer) { | 718 | if (peer) { |
718 | if (sk->sk_state != TCP_ESTABLISHED) | 719 | if (sk->sk_state != TCP_ESTABLISHED) |
719 | return -ENOTCONN; | 720 | return -ENOTCONN; |