Target node address

I am trying to findout the target node address but it seems the logic is wrong

node *targetNodeAddress(node *root, int target) {

if(root == NULL)
{
return NULL;
}

if(root->data == target) {
	return root;
}

targetNodeAddress(root->left, target);
targetNodeAddress(root->right, target);
return;

}