sanity check

This commit is contained in:
Jeff Becker 2021-09-20 18:22:15 -04:00 committed by Jeff
parent 8c8f97adda
commit 66de680884
1 changed files with 2 additions and 0 deletions

View File

@ -232,6 +232,8 @@ extern "C"
int EXPORT
lokinet_add_bootstrap_rc(const char* data, size_t datalen, struct lokinet_context* ctx)
{
if (data == nullptr or datalen == 0)
return -3;
llarp_buffer_t buf{data, datalen};
if (ctx == nullptr)
return -3;