Is initalization missing for socket_name and socket_dir?
Erik Sjölund
erik.sjolund at gmail.com
Fri Apr 18 18:10:12 AEST 2025
I was confused about C syntax.
socket_name and socket_dir are already initialized.
Sorry about the noise.
On Thu, Apr 17, 2025 at 9:31 PM Erik Sjölund <erik.sjolund at gmail.com> wrote:
>
> In the PR
> https://github.com/openssh/openssh-portable/pull/502
> the variables socket_name and socket_dir are initialized here:
> https://github.com/dkg/openssh-portable/blob/31873e2f6f841f20aeff5d0368cba71af4bb1352/ssh-agent.c#L2352-L2353
> but the those lines didn't make it into the final version.
>
> Could socket_name[0] be uninitialized here:
> https://github.com/openssh/openssh-portable/blob/9b50cb171b5c56184ce6fa3994ce62f9882d2daf/ssh-agent.c#L2437
> ?
>
> Maybe something like the attached patch is needed?
> (This is untested code)
More information about the openssh-unix-dev
mailing list