summaryrefslogtreecommitdiffstats
path: root/src/peer.c
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2012-03-14 17:16:28 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2012-03-14 17:16:28 +0100
commitd9ed50094da3890b10872a4955dceb2817931f1f (patch)
tree15f83f511489e46bbb1df5ff2443a784b0a43815 /src/peer.c
parent4cdee0ee4745a5bb44b9f2c95812cb4f1aea0a31 (diff)
downloadfastd-d9ed50094da3890b10872a4955dceb2817931f1f.tar
fastd-d9ed50094da3890b10872a4955dceb2817931f1f.zip
Require libuecc; rename cfxp to ecfxp; add some basic infrastructure for crypto implementation
Diffstat (limited to 'src/peer.c')
-rw-r--r--src/peer.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/peer.c b/src/peer.c
index 98eebe9..ab09a1a 100644
--- a/src/peer.c
+++ b/src/peer.c
@@ -50,6 +50,9 @@ const fastd_eth_addr* fastd_get_dest_address(const fastd_context *ctx, fastd_buf
}
static inline void reset_peer(fastd_context *ctx, fastd_peer *peer) {
+ ctx->conf->method->free_peer_private(ctx, peer);
+ peer->method_private = NULL;
+
int i, deleted = 0;
for (i = 0; i < ctx->n_eth_addr; i++) {
if (ctx->eth_addr[i].peer == peer) {
@@ -92,6 +95,7 @@ static fastd_peer* add_peer(fastd_context *ctx) {
peer->next = ctx->peers;
peer->last_req_id = 0;
+ peer->method_private = NULL;
ctx->peers = peer;