check ECIES flag for encrypted response

This commit is contained in:
orignal 2020-04-21 15:14:03 -04:00
parent 510b85fd23
commit 6b596bd05f

View File

@ -944,7 +944,7 @@ namespace data
if (replyTunnelID)
{
// encryption might be used though tunnel only
if (flag & DATABASE_LOOKUP_ENCRYPTION_FLAG) // encrypted reply requested
if (flag & (DATABASE_LOOKUP_ENCRYPTION_FLAG | DATABASE_LOOKUP_ECIES_FLAG)) // encrypted reply requested
{
const uint8_t * sessionKey = excluded;
const uint8_t numTags = excluded[32];