From d5c270e71cd1d133bb29b75e0825dca700bebd9e Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Wed, 3 Jul 2013 10:19:37 +0200 Subject: ipaccess-find: Address a warning by coverity of unitialized memory Use a memset on the sockaddr_in to make coverity happy. Fixes: CID 1040705 --- openbsc/src/ipaccess/ipaccess-find.c | 1 + 1 file changed, 1 insertion(+) (limited to 'openbsc/src') 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; -- cgit v1.2.3