~ubuntu-branches/ubuntu/saucy/wpasupplicant/saucy

« back to all changes in this revision

Viewing changes to src/eap_peer/eap_tnc.c

  • Committer: Bazaar Package Importer
  • Author(s): Mathieu Trudel-Lapierre
  • Date: 2010-11-22 09:43:43 UTC
  • mfrom: (1.1.16 upstream)
  • Revision ID: james.westby@ubuntu.com-20101122094343-qgsxaojvmswfri77
Tags: 0.7.3-0ubuntu1
* Get wpasupplicant 0.7.3 from Debian's SVN. Leaving 0.7.3-1 as unreleased
  for now.
* Build-Depend on debhelper 8, since the packaging from Debian uses compat 8.

Show diffs side-by-side

added added

removed removed

Lines of Context:
73
73
{
74
74
        struct wpabuf *msg;
75
75
 
76
 
        msg = eap_msg_alloc(EAP_VENDOR_IETF, EAP_TYPE_TNC, 0, code, id);
 
76
        msg = eap_msg_alloc(EAP_VENDOR_IETF, EAP_TYPE_TNC, 1, code, id);
77
77
        if (msg == NULL) {
78
78
                wpa_printf(MSG_ERROR, "EAP-TNC: Failed to allocate memory "
79
79
                           "for fragment ack");
80
80
                return NULL;
81
81
        }
 
82
        wpabuf_put_u8(msg, EAP_TNC_VERSION); /* Flags */
82
83
 
83
84
        wpa_printf(MSG_DEBUG, "EAP-TNC: Send fragment ack");
84
85
 
262
263
                   "Message Length %u", flags, message_length);
263
264
 
264
265
        if (data->state == WAIT_FRAG_ACK) {
265
 
                if (len != 0) {
 
266
                if (len > 1) {
266
267
                        wpa_printf(MSG_DEBUG, "EAP-TNC: Unexpected payload in "
267
268
                                   "WAIT_FRAG_ACK state");
268
269
                        ret->ignore = TRUE;