frrouting/ospfd
Donald Sharp 14ef138a77 ospfd: Fix crash when entering ospf authentication key XX
The code is hard coding the index for the argv_find call.  This
is ok for the `ip ospf authentication-key AUTH_KEY [A.B.C.D]` but
the DEFUN_HIDDEN that uses the ip_ospf_authentication_key too
has a different number of parameters so it causes a crash.
Let's make the code be a bit smarter about this problem.

Fixes: #19908
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
(cherry picked from commit d50f1e0d7f)
2025-11-05 16:55:27 +00:00
..
.gitignore *: cleanup .gitignore files 2018-09-08 21:30:42 +02:00
ChangeLog.opaque.txt Initial revision 2003-02-03 16:31:16 +00:00
Makefile build: non-recursive ospf* 2017-08-04 11:09:50 +02:00
OSPF-ALIGNMENT.txt *: Remove cvs control points 2017-12-05 17:28:12 -05:00
ospf_abr.c rip*,ospf*,pimd: Remove use of the EVENT_OFF macro 2025-04-29 14:45:29 -04:00
ospf_abr.h ospfd: add support for NSSA Type-7 address ranges 2023-03-31 19:28:15 -03:00
ospf_api.c ospfd: Fix Coverity SA #1617470, 76 and 78 2025-01-17 10:16:48 -05:00
ospf_api.h *: create a single registry of daemons' default port values 2024-02-01 11:40:02 -05:00
ospf_apiserver.c ospfd: Fix crash when ospf client connects before doing 'router ospf' 2025-05-09 13:33:37 -05:00
ospf_apiserver.h ospfd: OSPFAPI Server options to limit to local connections and per-instance TCP 2024-04-25 16:20:50 +00:00
ospf_asbr.c rip*,ospf*,pimd: Remove use of the EVENT_OFF macro 2025-04-29 14:45:29 -04:00
ospf_asbr.h ospfd: Correct one word 2025-01-03 22:57:30 +08:00
ospf_ase.c ospfd: Assure OSPF AS External routes are installed after link flap 2024-03-21 16:18:59 -04:00
ospf_ase.h *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
ospf_auth.c *: remove sys/stat.h from zebra.h 2024-01-09 12:39:23 -05:00
ospf_auth.h [ospfd]: add support for RFC 5709 HMAC-SHA Auth 2023-09-16 07:38:23 +03:30
ospf_bfd.c ospfd: clean up -Wshadow warnings 2025-04-08 14:41:27 -04:00
ospf_bfd.h *: Convert struct event_master to struct event_loop 2023-03-24 08:32:17 -04:00
ospf_dump.c ospfd: cosmetic change for one command 2025-03-03 10:12:01 +08:00
ospf_dump.h ospfd: Replace LSDB callbacks with LSA Update/Delete hooks. 2025-02-12 08:21:34 -05:00
ospf_dump_api.c *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
ospf_dump_api.h *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
ospf_errors.c [ospfd]: add support for RFC 5709 HMAC-SHA Auth 2023-09-16 07:38:23 +03:30
ospf_errors.h [ospfd]: add support for RFC 5709 HMAC-SHA Auth 2023-09-16 07:38:23 +03:30
ospf_ext.c ospfd: Decode Extended Link & Prefix TLVs for json 2024-02-12 17:52:00 +01:00
ospf_ext.h *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
ospf_flood.c ospfd: Use after free cleanup of lsa 2025-07-22 16:14:55 +00:00
ospf_flood.h ospfd: Fix several problems with direct acknowledgments and improved delay acks. 2024-07-06 13:42:40 +00:00
ospf_gr.c rip*,ospf*,pimd: Remove use of the EVENT_OFF macro 2025-04-29 14:45:29 -04:00
ospf_gr.h ospfd, ospf6d: fix time_t truncation 2023-05-30 19:47:28 -03:00
ospf_gr_helper.c rip*,ospf*,pimd: Remove use of the EVENT_OFF macro 2025-04-29 14:45:29 -04:00
ospf_ia.c *: Convert event.h to frrevent.h 2023-03-24 08:32:17 -04:00
ospf_ia.h *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
ospf_interface.c rip*,ospf*,pimd: Remove use of the EVENT_OFF macro 2025-04-29 14:45:29 -04:00
ospf_interface.h ospfd: Fix several problems with direct acknowledgments and improved delay acks. 2024-07-06 13:42:40 +00:00
ospf_ism.c rip*,ospf*,pimd: Remove use of the EVENT_OFF macro 2025-04-29 14:45:29 -04:00
ospf_ism.h * : include event ptr in event_execute api 2023-07-25 10:17:48 -04:00
ospf_ldp_sync.c rip*,ospf*,pimd: Remove use of the EVENT_OFF macro 2025-04-29 14:45:29 -04:00
ospf_ldp_sync.h *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
ospf_lsa.c rip*,ospf*,pimd: Remove use of the EVENT_OFF macro 2025-04-29 14:45:29 -04:00
ospf_lsa.h ospfd: remove unused function ins ospfd/ospf_lsa.c 2025-02-24 14:40:22 -05:00
ospf_lsdb.c ospfd: Replace LSDB callbacks with LSA Update/Delete hooks. 2025-02-12 08:21:34 -05:00
ospf_lsdb.h ospfd: Replace LSDB callbacks with LSA Update/Delete hooks. 2025-02-12 08:21:34 -05:00
ospf_main.c ospfd: There is no case 0 2025-05-05 07:55:45 -04:00
ospf_memory.c ospfd: Improve OSPF neighbor retransmission list granularity and precision 2024-06-20 15:31:07 +00:00
ospf_memory.h ospfd: Improve OSPF neighbor retransmission list granularity and precision 2024-06-20 15:31:07 +00:00
ospf_neighbor.c rip*,ospf*,pimd: Remove use of the EVENT_OFF macro 2025-04-29 14:45:29 -04:00
ospf_neighbor.h ospfd: Improve OSPF neighbor retransmission list granularity and precision 2024-06-20 15:31:07 +00:00
ospf_network.c ospfd: fix per-interface sockets 2023-07-03 09:37:25 -04:00
ospf_network.h ospfd: support write socket per interface 2023-04-11 10:16:07 -04:00
ospf_nsm.c rip*,ospf*,pimd: Remove use of the EVENT_OFF macro 2025-04-29 14:45:29 -04:00
ospf_nsm.h * : include event ptr in event_execute api 2023-07-25 10:17:48 -04:00
ospf_opaque.c rip*,ospf*,pimd: Remove use of the EVENT_OFF macro 2025-04-29 14:45:29 -04:00
ospf_opaque.h ospfd: Fix OSPF link-local opaque LSA crash and opaque memory corruption 2023-11-28 16:18:55 -05:00
ospf_packet.c build: simplify net/if_dl.h inclusion 2025-05-24 07:35:47 +02:00
ospf_packet.h ospfd: Fix several problems with direct acknowledgments and improved delay acks. 2024-07-06 13:42:40 +00:00
ospf_ri.c ospfd: Remove deprecated router_info_area_id_cmd 2024-08-14 23:16:39 +03:00
ospf_ri.h *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
ospf_route.c Merge pull request #14034 from LabNConsulting/aceelindem/ospf_prefix_suppression 2023-07-21 10:14:22 +03:00
ospf_route.h ospfd: Support show intra-area network type in 'show ip ospf route' command 2023-07-18 14:20:05 +08:00
ospf_routemap.c lib, ospfd, yang: add route map set for min/max metric 2023-04-18 00:48:16 -05:00
ospf_routemap_nb.c *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
ospf_routemap_nb.h *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
ospf_routemap_nb_config.c *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
ospf_snmp.c Revert "ospfd: fix some dicey pointer arith in snmp module" 2024-04-23 11:36:14 +02:00
ospf_spf.c ospfd: TI-LFA: actually delete vertexes on list 2025-10-08 21:19:35 +00:00
ospf_spf.h ospfd: TI-LFA: actually delete vertexes on list 2025-10-08 21:19:35 +00:00
ospf_sr.c rip*,ospf*,pimd: Remove use of the EVENT_OFF macro 2025-04-29 14:45:29 -04:00
ospf_sr.h *: Rename struct thread to struct event 2023-03-24 08:32:17 -04:00
ospf_te.c ospfd: clean up -Wshadow warnings 2025-04-08 14:41:27 -04:00
ospf_te.h *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
ospf_ti_lfa.c ospfd: TI-LFA: free tables after use 2025-10-08 21:19:35 +00:00
ospf_ti_lfa.h *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
ospf_vty.c ospfd: Fix crash when entering ospf authentication key XX 2025-11-05 16:55:27 +00:00
ospf_vty.h *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
ospf_zebra.c ospfd: fix uninitialized variable warning 2025-05-12 07:34:07 -03:00
ospf_zebra.h ospfd: Remove unused functionality 2025-05-03 13:53:03 -04:00
ospfd.c rip*,ospf*,pimd: Remove use of the EVENT_OFF macro 2025-04-29 14:45:29 -04:00
ospfd.h ospfd: clean up -Wshadow warnings 2025-04-08 14:41:27 -04:00
subdir.am [ospfd]: add support for RFC 5709 HMAC-SHA Auth 2023-09-16 07:38:23 +03:30