]> git.proxmox.com Git - mirror_qemu.git/commit
slirp: Remove superfluous memset() calls from the TFTP code
authorThomas Huth <thuth@redhat.com>
Mon, 27 Jun 2016 10:41:36 +0000 (12:41 +0200)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Sun, 3 Jul 2016 21:59:42 +0000 (23:59 +0200)
commite5857062a61de50e4d9249edfff3c222f8aca113
tree5ab1c2b4969e6c39b578ce88115987786a290f7b
parentf7725df38750c1eaebc6665159bb58ec23864c92
slirp: Remove superfluous memset() calls from the TFTP code

Commit fad7fb9ccd8013ea03  ("Add IPv6 support to the TFTP code")
refactored some common code for preparing the mbuf into a new
function called tftp_prep_mbuf_data(). One part of this common
code is to do a "memset(m->m_data, 0, m->m_size);" for the related
buffer first. However, at two spots, the memset() was not removed
from the calling function, so it currently done twice in these code
paths. Thus let's delete these superfluous memsets in the calling
functions now.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
slirp/tftp.c