]> git.puffer.fish Git - matthieu/frr.git/commit
lib: Return Null when we have an empty string for script name
authorDonald Sharp <sharpd@nvidia.com>
Fri, 29 Oct 2021 17:03:42 +0000 (13:03 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Mon, 1 Nov 2021 11:29:10 +0000 (07:29 -0400)
commit821a877fd76c15f1ad754a9d7b71e174540cc414
treeaffc6affa58a0b4205b10d853a8695a5820c84db
parent65a69156b247a71bb3b429ea665334f36d06fba7
lib: Return Null when we have an empty string for script name

The script entries were being stored in a hash lookup with
the script name a pre-defined array of characters.  The hash
lookup is succeeding since it is auto-installed at script
start time irrelevant if there is a handler function.

Modify the code so that if the scriptname is an empty
string "\0" just return a NULL so that zebra does
not attempt to actually load up the script

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
lib/frrscript.c