lib: Fix the value returned from get_mac_addresses() on Macintosh computers.

svn path=/trunk/boinc/; revision=21769
This commit is contained in:
Charlie Fenton 2010-06-18 10:16:01 +00:00
parent 171fde85b4
commit 6b5a028449
2 changed files with 11 additions and 1 deletions

View File

@ -4363,3 +4363,13 @@ David 17 Jun 2010
html/inc/
prefs.inc
Charlie 18 Jun 2010
- lib: Fix the value returned from get_mac_addresses() on Macintosh
computers. It has returned the value of kernResult, which is 0
on success, instead of true for success, since the routine was
first written in November 2008. This causes the client to
generate a new random CPID every time the client is launched.
lib/
mac_address.cpp

View File

@ -184,7 +184,7 @@ get_mac_addresses(char* addresses) {
}
IOObjectRelease(intfIterator);
return kernResult;
return (kernResult == KERN_SUCCESS);
#elif defined(SIOCGIFCONF) || defined(SIOCGLIFCONF)
char buf[1024];