legacy-net: wget: fix wget_info handling after new tcp legacy stack
authorAdriano Cordova <adrianox@gmail.com>
Thu, 6 Feb 2025 17:40:11 +0000 (14:40 -0300)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Fri, 28 Feb 2025 14:26:05 +0000 (15:26 +0100)
commit32a6c5eac0004bcfbb75d7ff9e9d627aca0e2852
treebeb84a72a0bba69cef3955fa03a9dab5d0d56121
parent2c2d2f3d12cd64d98cb10c21434b981145c4c8b5
legacy-net: wget: fix wget_info handling after new tcp legacy stack

Check wget_info->buffer_size for overflow and do not clean the wget_info struct
on failure, let the owner of the struct handle the error. The latter is necesary
, e.g., for when a request fails because the provided buffer was too small.

Signed-off-by: Adriano Cordova <adriano.cordova@canonical.com>
net/wget.c