resolv: Always set *resplen2 out parameter in send_vc [BZ #19825]
commitb9bdfa7c8fa22c944bb5f21a673dfd1f91b71c56
authorFlorian Weimer <fweimer@redhat.com>
Wed, 27 Apr 2016 12:26:47 +0000 (27 14:26 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Wed, 27 Apr 2016 12:26:47 +0000 (27 14:26 +0200)
tree51152c5b30660aae007c437bcf1169aff77d150a
parentb06549a5e62d66ef16bdc2a2a6ec8e9dae2ea52b
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.
ChangeLog
resolv/res_send.c