---- a/plugins/gssapi.c
-+++ b/plugins/gssapi.c
-@@ -370,7 +370,7 @@ sasl_gss_encode(void *context, const str
+--- cyrus-sasl-2.1.26/plugins/gssapi.c.orig 2012-11-23 19:03:06.002027748 +0100
++++ cyrus-sasl-2.1.26/plugins/gssapi.c 2012-11-23 19:06:07.818690625 +0100
+@@ -379,7 +379,7 @@
}
if (output_token->value && output) {
-- unsigned char * p = (unsigned char *) text->encode_buf;
+- unsigned char * p;
+ int len;
ret = _plug_buf_alloc(text->utils,
&(text->encode_buf),
-@@ -384,11 +384,8 @@ sasl_gss_encode(void *context, const str
+@@ -393,13 +393,8 @@
return ret;
}
-
+
+- p = (unsigned char *) text->encode_buf;
+-
- p[0] = (output_token->length>>24) & 0xFF;
- p[1] = (output_token->length>>16) & 0xFF;
- p[2] = (output_token->length>>8) & 0xFF;