mirror of https://github.com/BOINC/boinc.git
lib: Fix the value returned from get_mac_addresses() on Macintosh computers.
svn path=/trunk/boinc/; revision=21769
This commit is contained in:
parent
171fde85b4
commit
6b5a028449
|
@ -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
|
||||
|
|
|
@ -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];
|
||||
|
|
Loading…
Reference in New Issue