sendme: Always pop last SENDME digest from circuit
commit5479ffabf8ec1a3c63e9f237c6696c4ef0b74a55
authorDavid Goulet <dgoulet@torproject.org>
Wed, 22 May 2019 14:37:27 +0000 (22 10:37 -0400)
committerNick Mathewson <nickm@torproject.org>
Wed, 22 May 2019 15:47:20 +0000 (22 11:47 -0400)
tree1e3714b79efecf839f36752ad0cbf9ae29616996
parent482c4972b996fc7b1a3a8cc13f93c8ecc8748590
sendme: Always pop last SENDME digest from circuit

We must not accumulate digests on the circuit if the other end point is using
another SENDME version that is not using those digests like v0.

This commit makes it that we always pop the digest regardless of the version.

Part of #30428

Signed-off-by: David Goulet <dgoulet@torproject.org>
src/core/or/sendme.c
src/test/test_relaycell.c
src/test/test_sendme.c