From 70c5a7b68850e825b29b12c672fda71e366f58ff Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sat, 4 Nov 2017 15:42:15 +0000 Subject: [Rework] Kill metrics!11 --- src/libserver/re_cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libserver/re_cache.c') diff --git a/src/libserver/re_cache.c b/src/libserver/re_cache.c index e74de4e73..9aad6b591 100644 --- a/src/libserver/re_cache.c +++ b/src/libserver/re_cache.c @@ -1389,7 +1389,7 @@ rspamd_re_cache_compile_hyperscan (struct rspamd_re_cache *cache, /* Read number of regexps */ g_assert (fd != -1); lseek (fd, RSPAMD_HS_MAGIC_LEN + sizeof (cache->plt), SEEK_SET); - read (fd, &n, sizeof (n)); + g_assert (read (fd, &n, sizeof (n)) == sizeof (n)); close (fd); if (re_class->type_len > 0) { -- cgit v1.2.3