]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
don't stomp the minor status when a call to another gss function
authorMarc Horowitz <marc@mit.edu>
Thu, 13 Aug 1998 03:18:05 +0000 (03:18 +0000)
committerMarc Horowitz <marc@mit.edu>
Thu, 13 Aug 1998 03:18:05 +0000 (03:18 +0000)
returns an error

git-svn-id: svn://anonsvn.mit.edu/krb5/branches/marc-3des@10812 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/gssapi/krb5/init_sec_context.c

index 97e2b74cd53d4eaf54413993b29beead9b5902f3..b340279fab0c565dec8b4d918fef8f99503cd8d8 100644 (file)
@@ -502,7 +502,7 @@ krb5_gss_init_sec_context(minor_status, claimant_cred_handle,
    int gsskrb5_vers;
    int i, err;
    krb5_ui_4 resp_flags, field_length, opt_id;
-   OM_uint32 major_status;
+   OM_uint32 major_status, dummy;
 
    if (GSS_ERROR(kg_get_context(minor_status, &context)))
       return(GSS_S_FAILURE);
@@ -856,8 +856,7 @@ krb5_gss_init_sec_context(minor_status, claimant_cred_handle,
                        kg2_parse_token(minor_status, ptr, token_length,
                                        &resp_flags, &nctypes, &ctypes,
                                        0, NULL, &ap_rep, &mic))) {
-             (void)krb5_gss_delete_sec_context(minor_status, 
-                                               context_handle, NULL);
+             (void)krb5_gss_delete_sec_context(&dummy, context_handle, NULL);
              return(major_status);
          }
 
@@ -961,8 +960,7 @@ krb5_gss_init_sec_context(minor_status, claimant_cred_handle,
          if (GSS_ERROR(major_status = 
                        krb5_gss_verify_mic(minor_status, *context_handle,
                                            &mic_data, &mic_token, NULL))) {
-             (void)krb5_gss_delete_sec_context(minor_status, 
-                                               context_handle, NULL);
+             (void)krb5_gss_delete_sec_context(&dummy, context_handle, NULL);
              return(major_status);
          }
       }