diff options
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2013-07-03 10:19:37 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2013-07-03 10:19:37 +0200 |
commit | d5c270e71cd1d133bb29b75e0825dca700bebd9e (patch) | |
tree | a394074ee53f0c6372b8208c69f5be646eeb0f7d /openbsc/src/ipaccess | |
parent | 8690b98e7c88b86a8862f168b55cb33e917cca94 (diff) |
ipaccess-find: Address a warning by coverity of unitialized memory
Use a memset on the sockaddr_in to make coverity happy.
Fixes: CID 1040705
Diffstat (limited to 'openbsc/src/ipaccess')
-rw-r--r-- | openbsc/src/ipaccess/ipaccess-find.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/openbsc/src/ipaccess/ipaccess-find.c b/openbsc/src/ipaccess/ipaccess-find.c index 3f9bf4140..bb9819ed1 100644 --- a/openbsc/src/ipaccess/ipaccess-find.c +++ b/openbsc/src/ipaccess/ipaccess-find.c @@ -47,6 +47,7 @@ static int udp_sock(const char *ifname) goto err; } + memset(&sa, 0, sizeof(sa)); sa.sin_family = AF_INET; sa.sin_port = htons(3006); sa.sin_addr.s_addr = INADDR_ANY; |