[PATCH] openbsc[master]: gprs_sgsn.c: initialize ptmsi with 0xdeadbeef

lynxis lazus gerrit-no-reply at lists.osmocom.org
Sat Feb 4 00:52:49 UTC 2017


Review at  https://gerrit.osmocom.org/1749

gprs_sgsn.c: initialize ptmsi with 0xdeadbeef

Found by valgrind.

Change-Id: Ibc2d585c5db899e6af20104211e32faf3822633a
---
M openbsc/src/gprs/gprs_sgsn.c
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.osmocom.org:29418/openbsc refs/changes/49/1749/1

diff --git a/openbsc/src/gprs/gprs_sgsn.c b/openbsc/src/gprs/gprs_sgsn.c
index e85e1a9..40a66d9 100644
--- a/openbsc/src/gprs/gprs_sgsn.c
+++ b/openbsc/src/gprs/gprs_sgsn.c
@@ -610,7 +610,7 @@
 uint32_t sgsn_alloc_ptmsi(void)
 {
 	struct sgsn_mm_ctx *mm;
-	uint32_t ptmsi;
+	uint32_t ptmsi = 0xdeadbeef;
 	int max_retries = 100;
 
 restart:

-- 
To view, visit https://gerrit.osmocom.org/1749
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ibc2d585c5db899e6af20104211e32faf3822633a
Gerrit-PatchSet: 1
Gerrit-Project: openbsc
Gerrit-Branch: master
Gerrit-Owner: lynxis lazus <lynxis at fe80.eu>


More information about the gerrit-log mailing list