From fb83e2b2dd376186833207f2877c676c1c6764d1 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sat, 2 Feb 2008 22:54:29 +0100 Subject: [PATCH] validate the package name for import --- file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/file.c b/file.c index 662c97f..eb05d25 100644 --- a/file.c +++ b/file.c @@ -755,7 +755,7 @@ int uci_load(struct uci_context *ctx, const char *name, struct uci_package **pac FILE *file = NULL; UCI_HANDLE_ERR(ctx); - UCI_ASSERT(ctx, name != NULL); + UCI_ASSERT(ctx, uci_validate_name(name)); switch (name[0]) { case '.': -- 2.25.1