> I think I figured it was important to set f since it is used later on
> for the setsockopt.
Oops. You're obviously right. Corrected in the patch below or next snapshot.
Olaf
--- cipe/ciped.c 2001/04/15 21:25:12 1.52
+++ cipe/ciped.c 2001/11/19 20:08:13
@@ -300,6 +300,8 @@
if (inetd) {
f=0;
} else if (usesock>=0) {
+#if 0
+ /* this seems to be unnecessary */
struct sockaddr_in sa;
memset(&sa, 0, sizeof(sa));
sa.sin_family=AF_UNSPEC;
@@ -307,6 +309,9 @@
if (connect(f, (struct sockaddr *)&sa, sizeof(sa))<0) {
err("opendev: disconnect: %m");
}
+#else
+ f=usesock;
+#endif
} else {
if ((f=socket(AF_INET, SOCK_DGRAM, 0))<0) {
Log(LOG_ERR, "opendev: socket: %m");
=== end of patch ===