sendme: Keep cell digest only if a SENDME is next
commitc7385b5b14b30774c1768798c4495465da4d995d
authorDavid Goulet <dgoulet@torproject.org>
Wed, 24 Apr 2019 17:38:47 +0000 (24 13:38 -0400)
committerDavid Goulet <dgoulet@torproject.org>
Mon, 29 Apr 2019 16:17:57 +0000 (29 12:17 -0400)
tree8e339c489377cd562bc44101f9d0f87b677b9c79
parent805c81efed9bc2c474d3f10675846ee445a908d5
sendme: Keep cell digest only if a SENDME is next

This way, we reduce the load by only hashing when we absolutely must.

Part of #26288

Signed-off-by: David Goulet <dgoulet@torproject.org>
src/core/crypto/relay_crypto.c