diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-06-17 14:28:58 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-06-17 14:28:58 +0100 |
commit | 4bb28b80a77eaf9ae07d67092cce44a69074bdeb (patch) | |
tree | 2a36eeca8f5a545863e164f4a3428eca214628ed | |
parent | ded92b9faa92e062e8849a5f51197eac8c407100 (diff) | |
download | rspamd-4bb28b80a77eaf9ae07d67092cce44a69074bdeb.tar.gz rspamd-4bb28b80a77eaf9ae07d67092cce44a69074bdeb.zip |
[Fix] Do not die if shmem_mkstemp fails
-rw-r--r-- | src/libutil/util.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libutil/util.c b/src/libutil/util.c index aaaa09f27..20da1a371 100644 --- a/src/libutil/util.c +++ b/src/libutil/util.c @@ -1926,8 +1926,11 @@ rspamd_shmem_mkstemp (gchar *pattern) break; } else if (errno != EEXIST) { - g_error ("%s: failed to create temp shmem %s: %s", + msg_err ("%s: failed to create temp shmem %s: %s", G_STRLOC, nbuf, strerror (errno)); + g_free (nbuf); + + return -1; } } |