[PATCH] cpukit/libdebugger: Fix for sockaddr_in not being initialized
Vijay Kumar Banerjee
vijay at rtems.org
Wed Jun 2 15:32:22 UTC 2021
On Tue, Jun 1, 2021 at 12:20 PM Joel Sherrill <joel at rtems.org> wrote:
>
> This looks like it should fix the issue.
>
> OK to push.
>
Pushed. Thanks.
> On Tue, Jun 1, 2021 at 1:06 PM Harrison Edward Gerber <gerberhe11 at gmail.com> wrote:
>>
>> From: Harrison Edward Gerber <gerberhe11 at gmail.com>
>>
>> See also CID 1468684
>>
>> Closes #4445
>> ---
>> cpukit/libdebugger/rtems-debugger-remote-tcp.c | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/cpukit/libdebugger/rtems-debugger-remote-tcp.c b/cpukit/libdebugger/rtems-debugger-remote-tcp.c
>> index 696e2deb8c..440baa9b66 100644
>> --- a/cpukit/libdebugger/rtems-debugger-remote-tcp.c
>> +++ b/cpukit/libdebugger/rtems-debugger-remote-tcp.c
>> @@ -122,7 +122,7 @@ static int
>> tcp_remote_connect(rtems_debugger_remote* remote)
>> {
>> int ld;
>> - struct sockaddr_in addr;
>> + struct sockaddr_in addr = {0};
>> socklen_t opt;
>> socklen_t len;
>> bool running;
>> --
>> 2.25.1
>>
>> _______________________________________________
>> devel mailing list
>> devel at rtems.org
>> http://lists.rtems.org/mailman/listinfo/devel
>
> _______________________________________________
> devel mailing list
> devel at rtems.org
> http://lists.rtems.org/mailman/listinfo/devel
More information about the devel
mailing list