From: Luke Howard Date: Sat, 25 Sep 2010 12:41:57 +0000 (+0200) Subject: get GS2 working X-Git-Url: http://www.project-moonshot.org/gitweb/?p=cyrus-sasl.git;a=commitdiff_plain;h=080609dc9514ad6cf3f29200e719920c350bafe3 get GS2 working --- diff --git a/plugins/gs2_token.c b/plugins/gs2_token.c index a44dde4..7da4597 100644 --- 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; }