Skip to content

Commit

Permalink
Do not crash on an incoming message with 0 alias. (#751)
Browse files Browse the repository at this point in the history
  • Loading branch information
balazsracz authored Nov 22, 2023
1 parent 2c8d383 commit 9018891
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/openlcb/AliasCache.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,10 @@ NodeAlias AliasCache::lookup(NodeID id)
*/
NodeID AliasCache::lookup(NodeAlias alias)
{
HASSERT(alias != 0);
if (alias == 0)
{
return 0;
}

auto it = aliasMap.find(alias);

Expand Down

0 comments on commit 9018891

Please sign in to comment.