Skip to content

Commit

Permalink
fix foundation
Browse files Browse the repository at this point in the history
  • Loading branch information
sreimers committed Jul 10, 2023
1 parent 545b418 commit f33a73e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/ice/icesdp.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ struct rcand {
uint32_t prio;
struct sa caddr;
struct sa rel_addr;
struct pl *foundation;
struct pl foundation;
char domain[128];
};

Expand Down Expand Up @@ -245,7 +245,7 @@ static void delayed_rcand(int err, void *arg)
goto out;

icem_rcand_add(rcand->icem, rcand->type, rcand->cid, rcand->prio,
&rcand->caddr, &rcand->rel_addr, rcand->foundation);
&rcand->caddr, &rcand->rel_addr, &rcand->foundation);

out:
mem_deref(rcand);
Expand All @@ -257,7 +257,7 @@ static void rcand_dealloc(void *arg)
struct rcand *rcand = arg;

mem_deref(rcand->icem);
mem_deref(rcand->foundation);
mem_deref(&rcand->foundation.p);
mem_deref(rcand->domain);
}

Expand Down Expand Up @@ -329,7 +329,7 @@ static int cand_decode(struct icem *icem, const char *val)
rcand->prio = pl_u32(&prio);
rcand->rel_addr = rel_addr;

pl_dup(rcand->foundation, &foundation);
pl_dup(&rcand->foundation, &foundation);
(void)pl_strcpy(&addr, rcand->domain, sizeof(rcand->domain));

err = re_thread_async(getaddr_rcand, delayed_rcand, rcand);
Expand Down

0 comments on commit f33a73e

Please sign in to comment.