~ubuntu-branches/ubuntu/lucid/wpasupplicant/lucid-updates

« back to all changes in this revision

Viewing changes to debian/patches/11_madwifi_open_aps.dpatch

  • Committer: Bazaar Package Importer
  • Author(s): Kyle McMartin
  • Date: 2005-02-15 00:51:28 UTC
  • Revision ID: james.westby@ubuntu.com-20050215005128-4cnlxpp3vc3synqq
Tags: 0.3.8-1
* New upstream release.
* This release fixes a crash due to a buffer overflow, caused by
  a missing validation step on EAPOL-Key frames. Receiving malformed
  frames trigger the crash. More information available in the notes:
  http://lists.shmoo.com/pipermail/hostap/2005-February/009465.html
* Fix some badness with the init script. Missed the -B option
  to daemonize wpa_supplicant... pidfile is not currently being used
  as it requires modifying wpa_supplicant.
* patches/
  - 12_ipw_open_aps (closes: #295143)
    + merge patch against driver_ipw to fix association with
      open access points.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh /usr/share/dpatch/dpatch-run
 
2
## 11_madwifi_open_aps.dpatch by  <kyle@debian.org>
 
3
##
 
4
 
 
5
## DP: Bug#294909: wpasupplicant wont associate with open aps using -Dmadwifi
 
6
## DP: From: Brad Langhorst <brad@langhorst.com>
 
7
 
 
8
@DPATCH@
 
9
diff -urNad wpasupplicant-0.3.7/driver_madwifi.c /tmp/dpep.Kf0fsd/wpasupplicant-0.3.7/driver_madwifi.c
 
10
--- wpasupplicant-0.3.7/driver_madwifi.c        2005-02-12 23:27:46.000000000 -0500
 
11
+++ /tmp/dpep.Kf0fsd/wpasupplicant-0.3.7/driver_madwifi.c       2005-02-12 23:29:27.000000000 -0500
 
12
@@ -292,6 +292,11 @@
 
13
         *     needed to disambiguate an AP that broadcasts multiple
 
14
         *     ssid's but uses the same bssid.
 
15
         */
 
16
+
 
17
+       if ((params->key_mgmt_suite == KEY_MGMT_NONE) && 
 
18
+                       (wpa_driver_madwifi_set_wpa(drv, 0) < 0))
 
19
+               ret = -1;
 
20
+
 
21
        /* XXX error handling is wrong but unclear what to do... */
 
22
        if (wpa_driver_madwifi_set_wpa_ie(drv, params->wpa_ie,
 
23
                                          params->wpa_ie_len) < 0)