]> git.ipfire.org Git - thirdparty/glibc.git/commit
resolv: Always set *resplen2 out parameter in send_vc [BZ #19825]
authorFlorian Weimer <fweimer@redhat.com>
Wed, 27 Apr 2016 12:26:47 +0000 (14:26 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Mon, 9 May 2016 09:37:38 +0000 (11:37 +0200)
commit075b2665b159491fdd17f5aee90d47fa7388ed6f
tree557fd978dae04e668468fe9c26a4ef0037c961a0
parent1e5ac8a1daa360cd9632e5056e4bdf29e18ac2c7
resolv: Always set *resplen2 out parameter in send_vc [BZ #19825]

In various error scenarios (for example, if the server closes the
TCP connection before sending the full response), send_vc can return
without resetting the *resplen2 value.  This can pass uninitialized
or unexpected data to the caller.

(cherry picked from commit b9bdfa7c8fa22c944bb5f21a673dfd1f91b71c56)
ChangeLog
resolv/res_send.c