diff --git a/mud.c b/mud.c index cbc8fe3..d6d689d 100644 --- a/mud.c +++ b/mud.c @@ -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;