Shouldn't exit on send failure.
authorfredrik@DOLDA2000.COM <fredrik@DOLDA2000.COM@959494ce-11ee-0310-bf91-de5d638817bd>
Fri, 29 Apr 2005 00:43:00 +0000 (00:43 +0000)
committerfredrik@DOLDA2000.COM <fredrik@DOLDA2000.COM@959494ce-11ee-0310-bf91-de5d638817bd>
Fri, 29 Apr 2005 00:43:00 +0000 (00:43 +0000)
git-svn-id: svn+ssh://svn.dolda2000.com/srv/svn/repos/src/icmp-dn@214 959494ce-11ee-0310-bf91-de5d638817bd

icmpdnd.c

index 3fa1792..2b59175 100644 (file)
--- a/icmpdnd.c
+++ b/icmpdnd.c
@@ -198,10 +198,8 @@ int main(int argc, char **argv)
        /* XXX: The correct source address needs to be filled in from
         * the request's destination address. */
        ret = sendto(s, buf, datalen + sizeof(rep), 0, (struct sockaddr *)&name, namelen);
-       if(ret < 0) {
+       if(ret < 0)
            syslog(LOG_WARNING, "error in sending reply: %m");
-           exit(1);
-       }
     }
     
     close(s);