Skip to contentSkip to conversation

gprs: Do not leak CID on failure to assign context

PATCH Applied [email protected] 2 participants 2 messages Aug 6, 2019 – Aug 7, 2019

lore
Share & tools
lore
#0 lore raw

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
index bdb8c8a2..723013b7 100644
@@ -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
#1 lore raw

Hi 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