aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2017-11-17 14:37:14 +0100
committerPau Espin Pedrol <pespin@sysmocom.de>2017-11-17 14:37:14 +0100
commit7d9a19739068edc0267fc5a91a81bc3cd0890783 (patch)
treeffaed4752e043931dd0ad32613e7951478b66ac7
parentb393b3f4cc8a83e1e58c44187a383050378d860f (diff)
ss7_vty: Fix out-of-bounds access in 'as' cmd
-rw-r--r--src/osmo_ss7_vty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/osmo_ss7_vty.c b/src/osmo_ss7_vty.c
index 4c67508..cbbb9e3 100644
--- a/src/osmo_ss7_vty.c
+++ b/src/osmo_ss7_vty.c
@@ -677,7 +677,7 @@ DEFUN(cs7_as, cs7_as_cmd,
enum osmo_ss7_asp_protocol protocol = parse_asp_proto(argv[1]);
if (protocol == OSMO_SS7_ASP_PROT_NONE) {
- vty_out(vty, "invalid protocol '%s'%s", argv[3], VTY_NEWLINE);
+ vty_out(vty, "invalid protocol '%s'%s", argv[1], VTY_NEWLINE);
return CMD_WARNING;
}