Initialize sockaddr before binding

This commit is contained in:
Julien BLACHE 2011-07-09 11:49:02 +02:00
parent 17d4153b81
commit e2390f9d22

View File

@ -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)