From e2390f9d22e4b29650a3d8fd523991f200fa70e6 Mon Sep 17 00:00:00 2001 From: Julien BLACHE Date: Sat, 9 Jul 2011 11:49:02 +0200 Subject: [PATCH] Initialize sockaddr before binding --- src/raop.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/raop.c b/src/raop.c index 2d20c1af..adaff10b 100644 --- a/src/raop.c +++ b/src/raop.c @@ -2596,6 +2596,7 @@ raop_v2_timing_start_one(struct raop_service *svc, int family) } } + memset(&sa, 0, sizeof(union sockaddr_all)); sa.ss.ss_family = family; switch (family) @@ -2927,6 +2928,7 @@ raop_v2_control_start_one(struct raop_service *svc, int family) } } + memset(&sa, 0, sizeof(union sockaddr_all)); sa.ss.ss_family = family; switch (family)