<< | Thread Index | >> ]    [ << | Date Index | >> ]

Subject: Re: long standing problem with cipe finally resolved...
From: Olaf Titz <olaf,AT,bigred,DOT,inka,DOT,de>
Date: Mon, 19 Nov 2001 21:47:37 +0100
In-reply-to: <B94EA0108C0A894A94F55273B9594E0D4FC26A@exch101.on.ws>

> 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 ===





<< | Thread Index | >> ]    [ << | Date Index | >> ]