gprs: Do not leak CID on failure to assign context
PATCH 1/1 gprs: Do not leak CID on failure to assign context
From: Richard Röjfors <[email protected]>
--- src/gprs.c | 3 +++ 1 file changed, 3 insertions(+)
src/gprs.c +3 -0
@@ -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; }
Signature · 1 line
2.20.1
Denis Kenzior
AppliedHi Richard,
Quoted 6 lines · richard.rojfors(a)gmail.com
From: Richard Röjfors <[email protected]>
--- src/gprs.c | 3 +++ 1 file changed, 3 insertions(+)
Applied, thanks.
Regards,
-Denis