Harald Welte has submitted this change and it was merged.

Change subject: ss7_vty: Fix out-of-bounds access in 'as' cmd
......................................................................


ss7_vty: Fix out-of-bounds access in 'as' cmd

Change-Id: I180d2ecbb266d9baf2a96017bab20760bb42812e
---
M src/osmo_ss7_vty.c
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Harald Welte: Looks good to me, approved
  Jenkins Builder: Verified



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 @@
        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;
        }
 

-- 
To view, visit https://gerrit.osmocom.org/4897
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I180d2ecbb266d9baf2a96017bab20760bb42812e
Gerrit-PatchSet: 1
Gerrit-Project: libosmo-sccp
Gerrit-Branch: master
Gerrit-Owner: Pau Espin Pedrol <[email protected]>
Gerrit-Reviewer: Harald Welte <[email protected]>
Gerrit-Reviewer: Jenkins Builder

Reply via email to