fix return of get_endpoint_address on success.

Necessary to actually return r on success.
* at least with Arch Linux gcc-4.7.2 & glibc-2.16.0 or newer. 
False Failure (r value of -18000) was failing out @ check.
merge fix return of get_endpoint_address on success