vty: fix de-reference of line from vty

This commit is contained in:
Harald Welte 2022-10-16 17:59:38 +02:00
parent 78914bc8a7
commit d89ad633e7
1 changed files with 1 additions and 1 deletions

View File

@ -124,7 +124,7 @@ DEFUN(cfg_line_role, cfg_line_role_cmd, "local-role (network|user)",
"Local end implements NETWORK role\n"
"Local end implements USER role\n")
{
struct isdntap_line *line = vty->priv;
struct isdntap_line *line = vty->index;
if (!strcmp(argv[0], "network"))
line->local_side_is_network = true;