diff options
authorNeels Hofmeyr <neels@hofmeyr.de>2018-09-27 00:58:16 +0200
committerNeels Hofmeyr <neels@hofmeyr.de>2018-09-27 14:44:30 +0200
commit66f6ed06e17878a2b8c280d58c9f61029d78f86c (patch)
parentb8cd891148bc7cfd4bf33d48b36ef9b630f5e732 (diff)
allow less characters for SCCP address book entries
Allowing a whole line of characters as address book name would be a lot, allowing 512 characters is completely ridiculous. That's more than this entire commit log message! 32 is plenty. All linking programs should automatically get the limitation in their VTY parsing without any changes. Configs with sccp-addr names > 31 chars will no longer work after this. Change-Id: I3ecf83d620e46f7bf9857fc60a93d4e240ee3b8a
1 files changed, 1 insertions, 1 deletions
diff --git a/src/osmo_ss7_vty.c b/src/osmo_ss7_vty.c
index d109a0c..295fc20 100644
--- a/src/osmo_ss7_vty.c
+++ b/src/osmo_ss7_vty.c
@@ -1019,7 +1019,7 @@ struct osmo_sccp_addr_entry {
struct llist_head list;
struct llist_head list_global;
struct osmo_ss7_instance *inst;
- char name[512];
+ char name[32];
struct osmo_sccp_addr addr;