From 66f6ed06e17878a2b8c280d58c9f61029d78f86c Mon Sep 17 00:00:00 2001 From: Neels Hofmeyr Date: Thu, 27 Sep 2018 00:58:16 +0200 Subject: 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 --- src/osmo_ss7_vty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }; -- cgit v1.2.3