To avoid warnings on some compilers, return NDN_ERROR_success instead of 0.