]> git.ipfire.org Git - thirdparty/postfix.git/commitdiff
snapshot-20010324
authorWietse Venema <wietse@porcupine.org>
Sat, 24 Mar 2001 05:00:00 +0000 (00:00 -0500)
committerViktor Dukhovni <viktor@dukhovni.org>
Tue, 5 Feb 2013 06:27:12 +0000 (06:27 +0000)
postfix/src/flush/flush.c
postfix/src/global/mail_version.h
postfix/src/util/inet_trigger.c
postfix/src/util/stream_trigger.c
postfix/src/util/unix_trigger.c

index eb6a24dcb4d71bc5909dc8ea8f7e8b80451988fd..29e2a3a509ae7c7f951e14104df2d39d02278b6a 100644 (file)
@@ -249,7 +249,8 @@ static int flush_add_service(const char *site, const char *queue_id)
      * Map site to path and update log.
      */
     site_path = flush_site_to_path((VSTRING *) 0, site);
-    status = flush_add_path(STR(site_path), queue_id);
+    status = valid_hostname(STR(site_path), DONT_GRIPE) ?
+       flush_add_path(STR(site_path), queue_id) : FLUSH_STAT_BAD;
     vstring_free(site_path);
 
     return (status);
@@ -317,7 +318,8 @@ static int flush_send_service(const char *site)
      * Map site name to path name and flush the log.
      */
     site_path = flush_site_to_path((VSTRING *) 0, site);
-    status = flush_send_path(STR(site_path));
+    status = valid_hostname(STR(site_path), DONT_GRIPE) ?
+       flush_send_path(STR(site_path)) : FLUSH_STAT_BAD;
     vstring_free(site_path);
 
     return (status);
index 38259bcc5944beee437fa662aa746dff349f8db7..b11e3b0855c1f8c0eead955401ead863788c017c 100644 (file)
@@ -15,7 +15,7 @@
   * Version of this program.
   */
 #define VAR_MAIL_VERSION       "mail_version"
-#define DEF_MAIL_VERSION       "Snapshot-20010323"
+#define DEF_MAIL_VERSION       "Snapshot-20010324"
 extern char *var_mail_version;
 
 /* LICENSE
index ace14ab0e1bd2c2912eb8ed93384d97c622c9142..6907d56cd172bbff5682eefe96c2b7c179ebe8a5 100644 (file)
@@ -79,6 +79,7 @@ static void inet_trigger_event(int event, char *context)
      */
     if (event == EVENT_TIME)
        msg_warn("%s: read timeout for service %s", myname, ip->service);
+    event_disable_readwrite(ip->fd);
     if (close(ip->fd) < 0)
        msg_warn("%s: close %s: %m", myname, ip->service);
     myfree(ip->service);
index ee59b6c2859b73ce3859d4ac99a5154d32ece108..b064a796303f52a7b8b361c8a6e98aa74925db2a 100644 (file)
@@ -76,6 +76,7 @@ static void stream_trigger_event(int event, char *context)
      */
     if (event == EVENT_TIME)
        msg_warn("%s: read timeout for service %s", myname, sp->service);
+    event_disable_readwrite(sp->fd);
     if (close(sp->fd) < 0)
        msg_warn("%s: close %s: %m", myname, sp->service);
     myfree(sp->service);
index 498a6c07a0f96aa2e19916c52175cd84723eca54..0bf8ae15fd0f7677971b42a960e8fe110c67be75 100644 (file)
@@ -77,6 +77,7 @@ static void unix_trigger_event(int event, char *context)
      */
     if (event == EVENT_TIME)
        msg_warn("%s: read timeout for service %s", myname, up->service);
+    event_disable_readwrite(up->fd);
     if (close(up->fd) < 0)
        msg_warn("%s: close %s: %m", myname, up->service);
     myfree(up->service);