Re: [PATCH] gdhcp: nul-terminate return for 0 sized option value
| Newsgroups | dev.linux.lists.connman |
|---|---|
| Message-ID | <172526582856.3804050.1879581388641618088.git-patchwork-notify@kernel.org> |
Hello: This patch was applied to connman.git (master) by Marcel Holtmann <[email protected]>: On Mon, 19 Aug 2024 17:14:54 -0400 you wrote: > From: Jonah Petri <[email protected]> > > In the field I have seen some dhcp servers return a code 252 response > with a zero length. In this case, this code has len=0 < optlen=1, in > which case the returned string never gets terminated. Using g_malloc0 > causes it to always get zero-terminated. > > [...] Here is the summary with links: - gdhcp: nul-terminate return for 0 sized option value https://git.kernel.org/pub/scm/network/connman/connman.git/?id=8018165a2172 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html