]> err.no Git - linux-2.6/commitdiff
[LLC]: Fix for Bugzilla ticket #5157
authorJochen Friedrich <jochen@scram.de>
Thu, 22 Sep 2005 07:46:44 +0000 (04:46 -0300)
committerArnaldo Carvalho de Melo <acme@mandriva.com>
Thu, 22 Sep 2005 07:46:44 +0000 (04:46 -0300)
Signed-off-by: Jochen Friedrich <jochen@scram.de>
Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
net/llc/af_llc.c

index 0607cd3fd12ce995d3a6723cfbd45365a0bd4873..3361ae900e2bb35e6bac8a268ea243903a1a7f6d 100644 (file)
@@ -418,9 +418,9 @@ static int llc_ui_connect(struct socket *sock, struct sockaddr *uaddr,
                rc = llc_ui_autobind(sock, addr);
                if (rc)
                        goto out;
-               llc->daddr.lsap = addr->sllc_sap;
-               memcpy(llc->daddr.mac, addr->sllc_mac, IFHWADDRLEN);
        }
+       llc->daddr.lsap = addr->sllc_sap;
+       memcpy(llc->daddr.mac, addr->sllc_mac, IFHWADDRLEN);
        sock->state = SS_CONNECTING;
        sk->sk_state   = TCP_SYN_SENT;
        llc->link   = llc_ui_next_link_no(llc->sap->laddr.lsap);