From: Felix Fietkau Date: Sat, 2 Feb 2008 21:54:29 +0000 (+0100) Subject: validate the package name for import X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=fb83e2b2dd376186833207f2877c676c1c6764d1;p=project%2Fuci.git validate the package name for import --- 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 '.':