mirror of git://git.sysmocom.de/ofono
gprs: Do not leak CID on failure to assign context
This commit is contained in:
parent
d4ced627e0
commit
5752702cbe
|
@ -271,6 +271,9 @@ static gboolean assign_context(struct pri_context *ctx, unsigned int use_cid)
|
|||
return TRUE;
|
||||
}
|
||||
|
||||
l_uintset_take(used_cids, ctx->context.cid);
|
||||
ctx->context.cid = 0;
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue