Skip to content
Snippets Groups Projects
Commit eb15446c authored by Marek Vavrusa's avatar Marek Vavrusa
Browse files

daemon: ignore empty TA instead of failing

parent 1d2da26a
No related branches found
No related tags found
No related merge requests found
......@@ -206,7 +206,7 @@ static int l_trustanchor(lua_State *L)
struct engine *engine = engine_luaget(L);
const char *anchor = lua_tostring(L, 1);
bool enable = lua_isboolean(L, 2) ? lua_toboolean(L, 2) : true;
if (!anchor) {
if (!anchor || strlen(anchor) == 0) {
return 0;
}
/* If disabling, parse the owner string only. */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment