curvecpserver fails to bind to socket
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
nacl (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
$ curvecpserver -v foo key 127.0.0.1 10000 314159265358979
curvecpserver: fatal: unable to bind socket: address family not supported
$ echo $?
111
$ strace -e bind curvecpserver -v foo key 127.0.0.1 10000 314159265358979
bind(12, {sa_family=
curvecpserver: fatal: unable to bind socket: address family not supported
+++ exited with 111 +++
This patch fixes it:
diff -ru orig/nacl-
--- orig/nacl-
+++ nacl-20110221/
@@ -9,6 +9,7 @@
{
struct sockaddr_in sa;
byte_
+ sa.sin_family = AF_INET;
byte_
byte_
return bind(fd,(struct sockaddr *) &sa,sizeof sa);
Fixed in 20110221-5