[ipoib] Fix a bug on __recv_get_endpts.