Enforce authenticated service admission in the router
This commit is contained in:
1 parent
66f817e0b5
commit
5f2eb2ef70
5 files changed
+90
-7
No files matched your search
@@ -976,7 +976,9 @@ static int member_access(sqlite3* db, const char* channel_id, uint64_t node_id,
|
||||
if (rc != SQLITE_ROW && rc != SQLITE_DONE)
|
||||
DEBUG_ERROR(DEBUG_CATEGORY_BGP, "member admission read failed channel=%s node=%016llx rc=%d: %s",
|
||||
channel_id, (unsigned long long)node_id, rc, sqlite3_errmsg(db));
|
||||
sqlite3_finalize(statement); return allowed;
|
||||
int final = sqlite3_finalize(statement);
|
||||
if (final != SQLITE_OK) DEBUG_ERROR(DEBUG_CATEGORY_BGP, "member admission finalize failed channel=%s rc=%d", channel_id, final);
|
||||
return allowed && final == SQLITE_OK;
|
||||
}
|
||||
|
||||
int topo_node_sqlite_member_allowed(sqlite3* db, const char* channel_id, uint64_t node_id) {
|
||||
|
||||
Reference in new issue
Block a user