From 1ac6ec0ce024a92a3ee61a1a0530613b1e335aa8 Mon Sep 17 00:00:00 2001 From: "fredrik@DOLDA2000.COM" Date: Fri, 29 Apr 2005 00:43:00 +0000 Subject: [PATCH] Shouldn't exit on send failure. git-svn-id: svn+ssh://svn.dolda2000.com/srv/svn/repos/src/icmp-dn@214 959494ce-11ee-0310-bf91-de5d638817bd --- icmpdnd.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/icmpdnd.c b/icmpdnd.c index 3fa1792..2b59175 100644 --- 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); -- 2.11.0