diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2015-10-18 04:44:14 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2015-10-18 04:44:14 +0200 |
commit | 64d0bef9efd4a82b7a132b490328c80e67431041 (patch) | |
tree | b802f49e2434519e22afd384fff3f85bd401a2da /src/protocols | |
parent | 412e341def88b0734fbac2c2f19fcecf2486ee86 (diff) | |
download | fastd-64d0bef9efd4a82b7a132b490328c80e67431041.tar fastd-64d0bef9efd4a82b7a132b490328c80e67431041.zip |
peer_group: add fastd_peer_group_lookup_peer_shell_command macro to simplify shell command lookup
Diffstat (limited to 'src/protocols')
-rw-r--r-- | src/protocols/ec25519_fhmqvc/handshake.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/protocols/ec25519_fhmqvc/handshake.c b/src/protocols/ec25519_fhmqvc/handshake.c index cebf25e..ee26892 100644 --- a/src/protocols/ec25519_fhmqvc/handshake.c +++ b/src/protocols/ec25519_fhmqvc/handshake.c @@ -513,7 +513,7 @@ void fastd_protocol_ec25519_fhmqvc_handshake_init(fastd_socket_t *sock, const fa fastd_handshake_add(&buffer, RECORD_SENDER_HANDSHAKE_KEY, PUBLICKEYBYTES, &ctx.protocol_state->handshake_key.key.public); if (!peer || !fastd_peer_is_established(peer)) { - const fastd_shell_command_t *on_connect = container_of(fastd_peer_group_lookup_peer(peer, on_connect.command), fastd_shell_command_t, command); + const fastd_shell_command_t *on_connect = fastd_peer_group_lookup_peer_shell_command(peer, on_connect); fastd_peer_exec_shell_command(on_connect, peer, (local_addr && local_addr->sa.sa_family) ? local_addr : sock->bound_addr, remote_addr, false); } |