Fix a code path where mech could be used uninitialized in
authorGreg Hudson <ghudson@mit.edu>
Sat, 16 Apr 2011 14:05:22 +0000 (14:05 +0000)
committerGreg Hudson <ghudson@mit.edu>
Sat, 16 Apr 2011 14:05:22 +0000 (14:05 +0000)
gss_accept_sec_context after r24645.

ticket: 6813

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@24883 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/gssapi/mechglue/g_accept_sec_context.c

index 8e0b7c5a08079c6e5d0e67e262859b527180db7d..9af8752d634d904fdd6ec21480b7479049eeee11 100644 (file)
@@ -122,7 +122,7 @@ gss_cred_id_t *             d_cred;
     gss_OID_desc       token_mech_type_desc;
     gss_OID            token_mech_type = &token_mech_type_desc;
     gss_OID            actual_mech = GSS_C_NO_OID;
-    gss_mechanism      mech;
+    gss_mechanism      mech = NULL;
 
     status = val_acc_sec_ctx_args(minor_status,
                                  context_handle,