Re: Invalid value for ai_flags
2007-05-04 17:08:29
Richard Stockton wrote:
Is this the same problem that Steven was having with Solaris?? Will
the same
patch work for me? Or is this something different?
It's the same problem, patch attached.
diff -u -r --show-c-function --new-file
--exclude-from=/home/martinea/src.orig/amanda.diff
--ignore-matching-lines='$Id:' amanda-2.5.2/common-src/stream.c
amanda-2.5.2.bind/common-src/stream.c
--- amanda-2.5.2/common-src/stream.c 2007-04-20 12:54:17.000000000 -0400
+++ amanda-2.5.2.bind/common-src/stream.c 2007-05-04 13:42:46.000000000
-0400
@@ -131,7 +131,7 @@ stream_server(
dbprintf(("%s: stream_server: Could not bind to port in range: %d -
%d.\n",
debug_prefix_time(NULL), portrange[0], portrange[1]));
} else {
- socklen = sizeof(server);
+ socklen = SS_LEN(&server);
if (bind(server_socket, (struct sockaddr *)&server, socklen) == 0)
goto out;
dbprintf(("%s: stream_server: Could not bind to any port: %s\n",
|
|
|