From 50ac264bf0e983a5b009c6d11dcc4f0703edab4b Mon Sep 17 00:00:00 2001 From: Robert Spalek Date: Mon, 14 Jan 2002 19:38:41 +0000 Subject: [PATCH] empty section of configuration item forbidden --- lib/conf.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/conf.c b/lib/conf.c index 3f79fc22..98c34b56 100644 --- a/lib/conf.c +++ b/lib/conf.c @@ -85,6 +85,8 @@ byte *cf_set_item(byte *sect, byte *name, byte *value) struct cfitem *item; byte *msg=NULL; + if (!*sect) + return "Empty section name"; item=cf_get_item(sect,name); if(!item) /* ignore unknown section */ return NULL; -- 2.39.5