Skip to content
Snippets Groups Projects
Commit a4372719 authored by Stephan Bosch's avatar Stephan Bosch
Browse files

lib-sieve: fixed potention segfault occuring when interpreter initialization fails.

parent d28ae8d8
No related branches found
No related tags found
No related merge requests found
...@@ -438,8 +438,9 @@ int sieve_test ...@@ -438,8 +438,9 @@ int sieve_test
} }
/* Cleanup */ /* Cleanup */
sieve_result_unref(&result); if ( result != NULL )
sieve_result_unref(&result);
return ret; return ret;
} }
...@@ -476,9 +477,10 @@ int sieve_execute ...@@ -476,9 +477,10 @@ int sieve_execute
if ( keep != NULL ) *keep = TRUE; if ( keep != NULL ) *keep = TRUE;
} }
} }
/* Cleanup */ /* Cleanup */
sieve_result_unref(&result); if ( result != NULL )
sieve_result_unref(&result);
return ret; return ret;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment

Consent

On this website, we use the web analytics service Matomo to analyze and review the use of our website. Through the collected statistics, we can improve our offerings and make them more appealing for you. Here, you can decide whether to allow us to process your data and set corresponding cookies for these purposes, in addition to technically necessary cookies. Further information on data protection—especially regarding "cookies" and "Matomo"—can be found in our privacy policy. You can withdraw your consent at any time.