Skip to content

Commit

Permalink
fix mem_deref
Browse files Browse the repository at this point in the history
  • Loading branch information
sreimers committed Jul 10, 2023
1 parent cfdf239 commit 9559c13
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/ice/icesdp.c
Original file line number Diff line number Diff line change
Expand Up @@ -228,14 +228,19 @@ static int getaddr_rcand(void *arg)
static void delayed_rcand(int err, void *arg)
{
struct rcand *rcand = arg;
(void)err;

if (err)
goto out;

/* add only if not exist */
if (icem_cand_find(&rcand->icem->rcandl, rcand->cid, rcand->caddr))
return;
goto out;

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

out:
mem_deref(rcand);
}


Expand Down

0 comments on commit 9559c13

Please sign in to comment.