]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
Add ASSERTD() to check the MAX_INI_ITEMS in plugin_display_options()
authorEric Bollengier <eric@baculasystems.com>
Mon, 29 Nov 2021 15:14:42 +0000 (16:14 +0100)
committerEric Bollengier <eric@baculasystems.com>
Thu, 14 Sep 2023 11:56:56 +0000 (13:56 +0200)
bacula/src/dird/ua_run.c

index 39b0a601593ecb673403f9f3d10e3eb43bd6b6f4..801c129f5af0a073b4be668543cffec4ceff83e3 100644 (file)
@@ -1000,6 +1000,8 @@ configure_again:
       ua->send_msg("%s\n", prompt.c_str());
    }
 
+   ASSERTD(nb < MAX_INI_ITEMS, "Check if we reach the MAX_INI_ITEMS defined");
+
    if (!get_cmd(ua, _("Use above plugin configuration? (yes/mod/no): "))) {
       ini->clear_items();
       return 0;