summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2017-03-01 15:01:28 +0100
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2017-03-02 01:48:31 +0000
commit5616cdde3ada142b948b2d5cc4342b0febca42dc (patch)
tree83ebd53958e5a407295a642c6642a368c5d23a4e
parentf01bd13ca1d137c4ec32ba301c47afb69a839378 (diff)
fix: gprs_gmm, gprs_llc_vty: two unterminated value_string arrays
-rw-r--r--openbsc/src/gprs/gprs_gmm.c1
-rw-r--r--openbsc/src/gprs/gprs_llc_vty.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/openbsc/src/gprs/gprs_gmm.c b/openbsc/src/gprs/gprs_gmm.c
index da243a4..aa03891 100644
--- a/openbsc/src/gprs/gprs_gmm.c
+++ b/openbsc/src/gprs/gprs_gmm.c
@@ -116,6 +116,7 @@ static const struct value_string gprs_pmm_state_names[] = {
{ MM_IDLE, "MM IDLE" },
{ MM_READY, "MM READY" },
{ MM_STANDBY, "MM STANDBY" },
+ { 0, NULL }
};
static int gsm48_gmm_authorize(struct sgsn_mm_ctx *ctx);
diff --git a/openbsc/src/gprs/gprs_llc_vty.c b/openbsc/src/gprs/gprs_llc_vty.c
index e97416b..bf34e97 100644
--- a/openbsc/src/gprs/gprs_llc_vty.c
+++ b/openbsc/src/gprs/gprs_llc_vty.c
@@ -48,6 +48,7 @@ struct value_string gprs_llc_state_strs[] = {
{ GPRS_LLES_ABM, "Asynchronous Balanced Mode" },
{ GPRS_LLES_LOCAL_REL, "Local Release" },
{ GPRS_LLES_TIMER_REC, "Timer Recovery" },
+ { 0, NULL }
};
static void vty_dump_lle(struct vty *vty, struct gprs_llc_lle *lle)