summaryrefslogtreecommitdiff
path: root/net/bftpd/patches/patch-ac
blob: 7d0546a40a06695958f84a7ed107d89178764379 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
$NetBSD: patch-ac,v 1.1.2.2 2010/06/07 19:06:20 tron Exp $

Bind failed: Address famly not supported by protocol family

--- main.c.orig	2010-04-11 12:21:24.000000000 +0000
+++ main.c
@@ -248,6 +248,7 @@ int main(int argc, char **argv)
 				   sizeof(i));
 #endif
 		memset((void *) &myaddr, 0, sizeof(myaddr));
+		myaddr.sin_family = AF_INET;
         if (!((port = strtoul(config_getoption("PORT"), NULL, 10))))
             port = DEFAULT_PORT;
 		myaddr.sin_port = htons(port);