summaryrefslogtreecommitdiffabout
path: root/src/meta1parse.c
Side-by-side diff
Diffstat (limited to 'src/meta1parse.c') (more/less context) (show whitespace changes)
-rw-r--r--src/meta1parse.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/meta1parse.c b/src/meta1parse.c
index 4b2fccb..528a80a 100644
--- a/src/meta1parse.c
+++ b/src/meta1parse.c
@@ -296,6 +296,8 @@ meta1_translate_node (struct grecs_node *node)
size_t len;
int err = 0;
+ if (node->type != grecs_node_block)
+ return 0;
comp = component_create (node->ident);
for (stmt = node->down; stmt; stmt = stmt->next)
{
@@ -309,7 +311,7 @@ meta1_translate_node (struct grecs_node *node)
}
comp->privs.allgroups = 1;
- comp->dir = META1_QUEUE_DIR ();
+ comp->dir = grecs_strdup (META1_QUEUE_DIR ());
comp->redir[RETR_ERR].type = redir_file;
comp->redir[RETR_ERR].v.file = NULL;
len = 0;

Return to:

Send suggestions and report system problems to the System administrator.