Don't use output_token after free
authorSam Hartman <hartmans@debian.org>
Wed, 3 Sep 2014 13:51:51 +0000 (09:51 -0400)
committerSam Hartman <hartmans@debian.org>
Wed, 3 Sep 2014 13:51:51 +0000 (09:51 -0400)
mod_auth_gssweb.c

index df0c11a..8f132fe 100644 (file)
@@ -466,6 +466,7 @@ gssweb_authenticate_user(request_rec *r)
   /* Store the nonce & ouput token in the stored context */
   conn_ctx->nonce = nonce;
   conn_ctx->output_token = output_token;
+  output_token.length = 0;
     
   /* If we aren't done yet, go around again */
   if (major_status & GSS_S_CONTINUE_NEEDED) {