Skip to content

Commit

Permalink
sieve-tools: Terminate with a fatal error when script cannot be compi…
Browse files Browse the repository at this point in the history
…led/opened.

Rather than continuing with binary == NULL, causing a segfault.
  • Loading branch information
stephanbosch committed Jul 10, 2017
1 parent d6598cc commit a7b315c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib-sieve-tool/sieve-tool.c
Expand Up @@ -536,7 +536,7 @@ struct sieve_binary *sieve_tool_script_compile

if ( (sbin = sieve_compile
(svinst, filename, name, ehandler, 0, NULL)) == NULL )
i_error("failed to compile sieve script '%s'", filename);
i_fatal("failed to compile sieve script '%s'", filename);

sieve_error_handler_unref(&ehandler);

Expand Down

0 comments on commit a7b315c

Please sign in to comment.