importd: make sure we don't accidentally close fd 0
authorLennart Poettering <lennart@poettering.net>
Tue, 22 Sep 2015 14:40:36 +0000 (16:40 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 22 Sep 2015 14:40:36 +0000 (16:40 +0200)
Fixes #1330

src/import/importd.c

index b91300a..c90ada5 100644 (file)
@@ -167,6 +167,7 @@ static int transfer_new(Manager *m, Transfer **ret) {
         t->type = _TRANSFER_TYPE_INVALID;
         t->log_fd = -1;
         t->stdin_fd = -1;
+        t->stdout_fd = -1;
         t->verify = _IMPORT_VERIFY_INVALID;
 
         id = m->current_transfer_id + 1;