Was comparing fd to recv (function) instead of recvfd. :)