Группа :: Сети/Прочее
Пакет: nc6
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: 05_source_service_and_source_address.diff
Скачать
Скачать
Don't override ai_flags with hints.ai_flags
--- a/src/afindep.c
+++ b/src/afindep.c
@@ -154,7 +154,8 @@
src_hints.ai_flags = AI_PASSIVE;
src_hints.ai_socktype = ptr->ai_socktype;
src_hints.ai_protocol = ptr->ai_protocol;
- src_hints.ai_flags = hints->ai_flags;
+ /* Don't override previous ai_flags */
+ src_hints.ai_flags |= hints->ai_flags;
/* get the local IP address of the connection */
err = getaddrinfo(local_address, local_service,