vty: fix de-reference of line from vty
This commit is contained in:
parent
78914bc8a7
commit
d89ad633e7
|
@ -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 NETWORK role\n"
|
||||||
"Local end implements USER 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"))
|
if (!strcmp(argv[0], "network"))
|
||||||
line->local_side_is_network = true;
|
line->local_side_is_network = true;
|
||||||
|
|
Loading…
Reference in New Issue