diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-09-22 16:40:36 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-09-22 16:40:36 +0200 |
commit | 3be78ab2b8f26c3c868275cac2458553efeda8a5 (patch) | |
tree | 3e0977def03e610d991a4fc4aa809f1e53f5216d | |
parent | 7757cfbecb6743887e6a611bd167f1cee21419db (diff) |
importd: make sure we don't accidentally close fd 0
Fixes #1330
-rw-r--r-- | src/import/importd.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/import/importd.c b/src/import/importd.c index b91300a5df..c90ada5da4 100644 --- a/src/import/importd.c +++ b/src/import/importd.c @@ -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; |