aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2024-07-13 12:19:39 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2024-07-13 12:19:39 -0400
commit6f2d18e0b8b15a4ab2066baee9b0ed3aedf4edf8 (patch)
tree2869c88ea77a8622bf15e62326cf62b237ee0bed
parentec60f5f315683123baa6f07f0390c1ef501d7b3d (diff)
downloadstasis-6f2d18e0b8b15a4ab2066baee9b0ed3aedf4edf8.tar.gz
Exit program when pointer to INIFILE is NULL.
* Validation function cannot otherwise proceed
-rw-r--r--src/delivery.c4
1 files changed, 4 insertions, 0 deletions
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");