diff options
author | Bernhard Schmidt <berni@debian.org> | 2018-10-14 22:51:08 +0200 |
---|---|---|
committer | Bernhard Schmidt <berni@debian.org> | 2018-10-14 22:51:08 +0200 |
commit | 87c2fd4310e5b345102d7a4915dc5e3a65052305 (patch) | |
tree | b7dc3d6d209bdb926c9e1ece7f9639aa1724b39e /src/openvpn/tls_crypt.c | |
parent | 3804bc2606a92e2f2f4b3a2b043af0d77d92b386 (diff) |
Revert "Merge branch 'stretch' of ssh://git.debian.org/git/collab-maint/openvpn into stretch"
This reverts commit 3804bc2606a92e2f2f4b3a2b043af0d77d92b386, reversing
changes made to 678cfd249add7ca758e4c41933c7b730132c99f4.
Diffstat (limited to 'src/openvpn/tls_crypt.c')
-rw-r--r-- | src/openvpn/tls_crypt.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/openvpn/tls_crypt.c b/src/openvpn/tls_crypt.c index 4c7170f..c227b09 100644 --- a/src/openvpn/tls_crypt.c +++ b/src/openvpn/tls_crypt.c @@ -95,10 +95,10 @@ tls_crypt_wrap(const struct buffer *src, struct buffer *dst, format_hex(BPTR(src), BLEN(src), 80, &gc)); /* Get packet ID */ - if (!packet_id_write(&opt->packet_id.send, dst, true, false)) { - msg(D_CRYPT_ERRORS, "TLS-CRYPT ERROR: packet ID roll over."); - goto err; + struct packet_id_net pin; + packet_id_alloc_outgoing(&opt->packet_id.send, &pin, true); + packet_id_write(&pin, dst, true, false); } dmsg(D_PACKET_CONTENT, "TLS-CRYPT WRAP AD: %s", |