From 6f2d18e0b8b15a4ab2066baee9b0ed3aedf4edf8 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Sat, 13 Jul 2024 12:19:39 -0400 Subject: Exit program when pointer to INIFILE is NULL. * Validation function cannot otherwise proceed --- src/delivery.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/delivery.c b/src/delivery.c index 7bedef3..11c5581 100644 --- a/src/delivery.c +++ b/src/delivery.c @@ -420,6 +420,10 @@ static int populate_mission_ini(struct Delivery **ctx) { } void validate_delivery_ini(struct INIFILE *ini) { + if (!ini) { + SYSERROR("%s", "INIFILE is NULL!"); + exit(1); + } if (ini_section_search(&ini, INI_SEARCH_EXACT, "meta")) { ini_has_key_required(ini, "meta", "name"); ini_has_key_required(ini, "meta", "version"); -- cgit