projects
/
cyrus-sasl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
951e720
)
get GS2 working
author
Luke Howard
<lukeh@padl.com>
Sat, 25 Sep 2010 12:41:57 +0000
(14:41 +0200)
committer
Luke Howard
<lukeh@padl.com>
Sat, 25 Sep 2010 12:41:57 +0000
(14:41 +0200)
plugins/gs2_token.c
patch
|
blob
|
history
diff --git
a/plugins/gs2_token.c
b/plugins/gs2_token.c
index
a44dde4
..
7da4597
100644
(file)
--- a/
plugins/gs2_token.c
+++ b/
plugins/gs2_token.c
@@
-135,7
+135,7
@@
size_t
gs2_token_size(const gss_OID_desc *mech, size_t body_size)
{
/* set body_size to sequence contents size */
- body_size +=
4
+ (size_t) mech->length; /* NEED overflow check */
+ body_size +=
2
+ (size_t) mech->length; /* NEED overflow check */
return 1 + der_length_size(body_size) + body_size;
}