~ubuntu-branches/ubuntu/natty/krb5/natty-updates

« back to all changes in this revision

Viewing changes to src/lib/gssapi/spnego/spnego_mech.c

  • Committer: Bazaar Package Importer
  • Author(s): Sam Hartman
  • Date: 2010-05-27 20:49:13 UTC
  • Revision ID: james.westby@ubuntu.com-20100527204913-zbz4d7t1bk100uo4
Tags: 1.8.1+dfsg-5
* Ignore duplicate token sent in mechListMIC from Windows 2000 SPNEGO
  (LP: #551901)
* krb5-admin-server starts after krb5-kdc, Closes: #583494

Show diffs side-by-side

added added

removed removed

Lines of Context:
3153
3153
                *mechListMIC = get_input_token(&ptr, REMAIN);
3154
3154
                if (*mechListMIC == GSS_C_NO_BUFFER)
3155
3155
                        return GSS_S_DEFECTIVE_TOKEN;
 
3156
 
 
3157
                /* Handle Windows 2000 duplicate response token */
 
3158
                if (*responseToken &&
 
3159
                    ((*responseToken)->length == (*mechListMIC)->length) &&
 
3160
                    !memcmp((*responseToken)->value, (*mechListMIC)->value,
 
3161
                            (*responseToken)->length)) {
 
3162
                        OM_uint32 tmpmin;
 
3163
 
 
3164
                        gss_release_buffer(&tmpmin, *mechListMIC);
 
3165
                        free(*mechListMIC);
 
3166
                        *mechListMIC = NULL;
 
3167
                }
3156
3168
        }
3157
3169
        return GSS_S_COMPLETE;
3158
3170
#undef REMAIN