]> git.ipfire.org Git - thirdparty/systemd.git/commit
resolved: make sure we initialize t->answer_errno before completing the transaction
authorLennart Poettering <lennart@poettering.net>
Fri, 28 Aug 2020 20:44:57 +0000 (22:44 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 1 Sep 2020 15:24:06 +0000 (17:24 +0200)
commit38ae73fafd39915e7b40fe311165fcec79fc0ee8
tree0add9b4372f58eafabc9966a646b3863580f1d7c
parenta1ba0fbef646c12082dc9cd3413b112e6a7f016a
resolved: make sure we initialize t->answer_errno before completing the transaction

We must have the error number around when completing the transaction.
Let's hence make sure we always initialize it *first* (we accidentally
did it once after).

Fixes: #11626
(cherry picked from commit fd8a30170342cfe245ea6acac392c2b224f0ae1b)
src/resolve/resolved-dns-transaction.c