From 19ba63435ea39eb865e593b493fef517267b788e Mon Sep 17 00:00:00 2001
From: Stefan Bolte <sbolte@lavabit.com>
Date: Wed, 15 May 2013 16:11:08 +0200
Subject: Abort if output cannot be written

---
 tools/exar/exar.c | 1 +
 1 file changed, 1 insertion(+)

(limited to 'tools')

diff --git a/tools/exar/exar.c b/tools/exar/exar.c
index 991c2377..6824846c 100644
--- a/tools/exar/exar.c
+++ b/tools/exar/exar.c
@@ -211,6 +211,7 @@ exar_unpack(const char *path, const char *dest)
             if (of == NULL)
             {
                 perror("fopen");
+                goto error_out;
             }
 
             LOG(2, "Writing %s (%lu bytes)\n", name, fs);
-- 
cgit v1.2.3