projects
/
mech_eap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3aac44c
)
tok_type can never be -1
author
Luke Howard
<lukeh@padl.com>
Mon, 2 Dec 2013 06:03:36 +0000
(17:03 +1100)
committer
Kevin Wasserman
<kevin.wasserman@painless-security.com>
Thu, 19 Dec 2013 17:17:56 +0000
(12:17 -0500)
mech_eap/util_token.c
patch
|
blob
|
history
diff --git
a/mech_eap/util_token.c
b/mech_eap/util_token.c
index
a1aea0c
..
d94c437
100644
(file)
--- a/
mech_eap/util_token.c
+++ b/
mech_eap/util_token.c
@@
-334,7
+334,7
@@
makeTokenHeader(
enum gss_eap_token_type tok_type)
{
*(*buf)++ = 0x60;
- der_write_length(buf,
(tok_type == -1) ?2:
4 + mech->length + body_size);
+ der_write_length(buf, 4 + mech->length + body_size);
*(*buf)++ = 0x06;
*(*buf)++ = (unsigned char)mech->length;
memcpy(*buf, mech->elements, mech->length);