Skip to content

Commit

Permalink
Merge pull request #14504 from FRRouting/mergify/bp/stable/9.0/pr-14494
Browse files Browse the repository at this point in the history
mgmtd: fix crash on "show mgmtd datastore-contents" (backport #14494)
  • Loading branch information
ton31337 authored Sep 28, 2023
2 parents 59aa33b + 39b6e03 commit 49545ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mgmtd/mgmt_vty.c
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ DEFPY(show_mgmt_dump_data,
LYD_FORMAT format = fmt[0] == 'j' ? LYD_JSON : LYD_XML;
FILE *f = NULL;

if (datastore)
if (dsname)
datastore = mgmt_ds_name2id(dsname);

ds_ctx = mgmt_ds_get_ctx_by_id(mm, datastore);
Expand Down

0 comments on commit 49545ac

Please sign in to comment.