2007-08-14 Dan Williams <dcbw@redhat.com>

* src/NetworkManagerAP.c
		- (nm_ap_new_from_properties): fix mistaken check of return value
			from memcmp (should expect 0)



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2687 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
Dan Williams 2007-08-15 02:54:15 +00:00
parent 0b9df92472
commit 30a4e7e602
2 changed files with 8 additions and 2 deletions

View file

@ -1,3 +1,9 @@
2007-08-14 Dan Williams <dcbw@redhat.com>
* src/NetworkManagerAP.c
- (nm_ap_new_from_properties): fix mistaken check of return value
from memcmp (should expect 0)
2007-08-14 Dan Williams <dcbw@redhat.com>
(force-commit to fix wrong comment and partial commit of r2685; this

View file

@ -503,8 +503,8 @@ nm_ap_new_from_properties (GHashTable *properties)
/* ignore APs with invalid BSSIDs */
addr = nm_ap_get_address (ap);
if ( (memcmp (addr->ether_addr_octet, bad_bssid1, ETH_ALEN))
|| (memcmp (addr->ether_addr_octet, bad_bssid2, ETH_ALEN))) {
if ( !(memcmp (addr->ether_addr_octet, bad_bssid1, ETH_ALEN))
|| !(memcmp (addr->ether_addr_octet, bad_bssid2, ETH_ALEN))) {
g_object_unref (ap);
return NULL;
}