mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-mgw.git
synced 2025-10-23 08:12:01 +00:00
Fix parsing of auto-generated config file
When starting with empty config file, saving it by 'write file', and then re-starting osmo-cscn, it would complain: Error occurred during reading below line: long name Osmocom Circuit-Switched Core Network The problem is that the vty parser is configured to expect a single token and not a list of tokens here, but we initialize the default value with multiple words (which are treated as separate token).
This commit is contained in:
@@ -240,7 +240,7 @@ struct gsm_network *cscn_network_init(void *ctx,
|
||||
if (!net)
|
||||
return NULL;
|
||||
|
||||
net->name_long = talloc_strdup(net, "Osmocom Circuit-Switched Core Network");
|
||||
net->name_long = talloc_strdup(net, "OsmoCSCN");
|
||||
net->name_short = talloc_strdup(net, "OsmoCSCN");
|
||||
|
||||
return net;
|
||||
|
Reference in New Issue
Block a user