valeriyvdovin / rpms / systemd

Forked from rpms/systemd 4 years ago
Clone

Blame SOURCES/0126-core-manager-remove-infinite-loop.patch

572a44
From 31a3bfaf3da730a2d6f32a8ab9d9e10e77905d4f Mon Sep 17 00:00:00 2001
572a44
From: Shawn Landden <shawn@churchofgit.com>
572a44
Date: Tue, 10 Dec 2013 09:28:26 -0800
572a44
Subject: [PATCH] core/manager: remove infinite loop
572a44
572a44
---
572a44
 src/core/manager.c | 4 +---
572a44
 1 file changed, 1 insertion(+), 3 deletions(-)
572a44
572a44
diff --git a/src/core/manager.c b/src/core/manager.c
572a44
index 944c196..a34a3c6 100644
572a44
--- a/src/core/manager.c
572a44
+++ b/src/core/manager.c
572a44
@@ -2285,10 +2285,8 @@ int manager_deserialize(Manager *m, FILE *f, FDSet *fds) {
572a44
         }
572a44
 
572a44
 finish:
572a44
-        if (ferror(f)) {
572a44
+        if (ferror(f))
572a44
                 r = -EIO;
572a44
-                goto finish;
572a44
-        }
572a44
 
572a44
         assert(m->n_reloading > 0);
572a44
         m->n_reloading --;