zerochaos 14/05/03 17:18:41 Added: fix_wids_mdk3_v5.patch Log: merging in fixes from the pentoo repo so gentoo is the only source of this ebuild (Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key DD11F94A)
Revision Changes Path 1.1 net-wireless/mdk/files/fix_wids_mdk3_v5.patch file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/mdk/files/fix_wids_mdk3_v5.patch?rev=1.1&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/mdk/files/fix_wids_mdk3_v5.patch?rev=1.1&content-type=text/plain Index: fix_wids_mdk3_v5.patch =================================================================== diff -ur mdk3-v5-orig/mdk3.c mdk3-v5/mdk3.c --- mdk3-v5-orig/mdk3.c 2008-11-10 21:45:02.000000000 +0100 +++ mdk3-v5/mdk3.c 2009-01-10 01:47:03.546875000 +0100 @@ -1092,10 +1092,13 @@ { struct clistwidsclient *first = c; - do { - if (!(memcmp(c->mac, mac, mac_len))) return c; - c = c->next; - } while (c != first); + if (c != NULL) + { + do { + if (c->mac != NULL && !(memcmp(c->mac, mac, mac_len))) return c; + c = c->next; + } while (c != NULL && c != first); + } return NULL; }