summaryrefslogtreecommitdiff
path: root/net/bftpd/patches/patch-ac
blob: aaf8237e55975120b95b45bc27485cf3b833ab58 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
$NetBSD: patch-ac,v 1.1 2010/05/27 14:14:30 obache 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);