diff options
author | Dimitri Staessens <dimitri.staessens@ugent.be> | 2018-05-08 14:42:55 +0200 |
---|---|---|
committer | Sander Vrijders <sander.vrijders@ugent.be> | 2018-05-08 14:52:04 +0200 |
commit | eaf14819c8cdab3c5ae1d678b0a12977f8b2d9e1 (patch) | |
tree | 29b91505426d5388eddc499b2a1d1a8b0877204d /src/ipcpd/normal/dht.c | |
parent | ba30eb7a57f3561eec8f24e36901847e5e13753f (diff) | |
download | ouroboros-eaf14819c8cdab3c5ae1d678b0a12977f8b2d9e1.tar.gz ouroboros-eaf14819c8cdab3c5ae1d678b0a12977f8b2d9e1.zip |
ipcpd: Fix check build for DHT0.11.6
The DHT test failed on the use of IPCP-specific calls. These calls are
now guarded by the correct defition checks.
Signed-off-by: Dimitri Staessens <dimitri.staessens@ugent.be>
Signed-off-by: Sander Vrijders <sander.vrijders@ugent.be>
Diffstat (limited to 'src/ipcpd/normal/dht.c')
-rw-r--r-- | src/ipcpd/normal/dht.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ipcpd/normal/dht.c b/src/ipcpd/normal/dht.c index 59451d19..b8bd03fa 100644 --- a/src/ipcpd/normal/dht.c +++ b/src/ipcpd/normal/dht.c @@ -2591,7 +2591,9 @@ static void dht_post_sdu(void * comp, struct dht * dht = (struct dht *) comp; if (dht_get_state(dht) == DHT_SHUTDOWN) { +#ifndef __DHT_TEST__ ipcp_sdb_release(sdb); +#endif return; } @@ -2636,7 +2638,9 @@ void dht_destroy(struct dht * dht) list_for_each_safe(p, h, &dht->cmds) { struct cmd * c = list_entry(p, struct cmd, next); list_del(&c->next); +#ifndef __DHT_TEST__ ipcp_sdb_release(c->sdb); +#endif free(c); } |