projects
/
mech_eap.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Updated to hostap_2_6
[mech_eap.git]
/
libeap
/
src
/
crypto
/
ms_funcs.c
diff --git
a/libeap/src/crypto/ms_funcs.c
b/libeap/src/crypto/ms_funcs.c
index
053d203
..
d0d6a96
100644
(file)
--- a/
libeap/src/crypto/ms_funcs.c
+++ b/
libeap/src/crypto/ms_funcs.c
@@
-48,7
+48,7
@@
static int utf8_to_ucs2(const u8 *utf8_string, size_t utf8_string_len,
WPA_PUT_LE16(ucs2_buffer + j,
((c & 0x1F) << 6) | (c2 & 0x3F));
j += 2;
- } else if (i == utf8_string_len ||
+ } else if (i == utf8_string_len
- 1
||
j >= ucs2_buffer_size - 1) {
/* incomplete surrogate */
return -1;