Fix build

Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
This commit is contained in:
Adrien Gallouët
2019-02-09 16:17:07 +00:00
parent e47db2ea47
commit 5f86acee91

4
mud.c
View File

@@ -856,11 +856,11 @@ mud_keyx(struct mud *mud, unsigned char *remote, int aes)
return 0;
crypto_aead_aes256gcm_beforenm((crypto_aead_aes256gcm_state *)
mud->crypto.next.encrypt.state,
&mud->crypto.next.encrypt.state,
mud->crypto.next.encrypt.key);
crypto_aead_aes256gcm_beforenm((crypto_aead_aes256gcm_state *)
mud->crypto.next.decrypt.state,
&mud->crypto.next.decrypt.state,
mud->crypto.next.decrypt.key);
return 0;