strongswan.org
Wiki/Project Management
Downloads
Gitweb
projects
/
strongswan.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
fb3cf1b
)
Use memmove on overlapping regions, and operate with correct sizeof()
author
Martin Willi
<martin@revosec.ch>
Thu, 30 Aug 2012 09:46:14 +0000
(11:46 +0200)
committer
Martin Willi
<martin@revosec.ch>
Wed, 12 Sep 2012 11:19:52 +0000
(13:19 +0200)
src/libtls/tls_eap.c
patch
|
blob
|
history
diff --git
a/src/libtls/tls_eap.c
b/src/libtls/tls_eap.c
index
3053390
..
928aadc
100644
(file)
--- a/
src/libtls/tls_eap.c
+++ b/
src/libtls/tls_eap.c
@@
-275,8
+275,8
@@
static status_t build_pkt(private_tls_eap_t *this, chunk_t *out)
else
{
/* get rid of the reserved length field */
- mem
cpy(buf+sizeof(eap
_packet_t),
-
buf+sizeof(eap_packet_t)+
sizeof(u_int32_t), len);
+ mem
move(buf + sizeof(eap_tls
_packet_t),
+
buf + sizeof(eap_tls_packet_t) +
sizeof(u_int32_t), len);
}
}
len += sizeof(eap_tls_packet_t);