[PATCH] cpukit/libdebugger: Fix for sockaddr_in not being initialized

Joel Sherrill joel at rtems.org
Tue Jun 1 18:20:21 UTC 2021


This looks like it should fix the issue.

OK to push.

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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20210601/0a93eaab/attachment.html>


More information about the devel mailing list