X-Git-Url: http://git.cascardo.eti.br/?a=blobdiff_plain;f=net%2Fieee80211%2Fieee80211_crypt_wep.c;h=8d182459344e9a94d7f992c97da3fae33e8a2e25;hb=6869ce1c145aaea9f9f8eb8623a261d316b0cd19;hp=ec6d8851a06103e96e89f1b6cc5db8305cc371fe;hpb=b312362be6d9155b66f3a26d9159e0a680fbd6c5;p=cascardo%2Flinux.git diff --git a/net/ieee80211/ieee80211_crypt_wep.c b/net/ieee80211/ieee80211_crypt_wep.c index ec6d8851a061..8d182459344e 100644 --- a/net/ieee80211/ieee80211_crypt_wep.c +++ b/net/ieee80211/ieee80211_crypt_wep.c @@ -1,7 +1,7 @@ /* * Host AP crypt: host-based WEP encryption implementation for Host AP driver * - * Copyright (c) 2002-2004, Jouni Malinen + * Copyright (c) 2002-2004, Jouni Malinen * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as @@ -152,7 +152,7 @@ static int prism2_wep_encrypt(struct sk_buff *skb, int hdr_len, void *priv) return -1; /* Copy the IV into the first 3 bytes of the key */ - memcpy(key, skb->data + hdr_len, 3); + skb_copy_from_linear_data_offset(skb, hdr_len, key, 3); /* Copy rest of the WEP key (the secret part) */ memcpy(key + 3, wep->key, wep->key_len);