]> git.ipfire.org Git - thirdparty/postfix.git/commitdiff
postfix-3.11-20250825
authorWietse Z Venema <wietse@porcupine.org>
Mon, 25 Aug 2025 05:00:00 +0000 (00:00 -0500)
committerViktor Dukhovni <ietf-dane@dukhovni.org>
Tue, 26 Aug 2025 01:50:59 +0000 (11:50 +1000)
postfix/HISTORY
postfix/proto/stop.double-history
postfix/src/global/mail_version.h
postfix/src/posttls-finger/posttls-finger.c
postfix/src/util/dict_dbm.c
postfix/src/util/dict_open.c

index 6a4f349d5f4d5fae644d5018e46dd8a274332378..53b03a9122bac323c70cf0075fa92d7808b2043e 100644 (file)
@@ -29575,3 +29575,21 @@ Apologies for any names omitted.
        smtpd 'disconnect' command counts did not count malformed
        commands with "bad syntax" and "bad UTF-8 syntax" errors.
        File: smtpd/smtpd.c.
+
+20250819
+
+       Bugfix: the 20250717 workaround broke DBM library support
+       which is still needed on Solaris. File: util/dict_dbm.c.
+
+20250823
+
+       Bugfix (defect introduced: Postfix 3.9, date 20230517):
+       posttls-finger logged a zero port number. Viktor Dukhovni.
+       File: posttls-finger/posttls-finger.c.
+
+20250825
+
+       Bugfix (defect introduced: 20250626): panic() in dict_register()
+       when dict_open() was called recursively, after dict_proxy_open()
+       changed the name of a dictionary on-the-fly by skipping a
+       proxy: prefix). File: util/dict_open.c.
index 4df8659386b99ca3002a110da0fc981111b79b9d..78427bde68dc131162acaf657195547648f5017c 100644 (file)
@@ -195,3 +195,4 @@ proto  proto COMPATIBILITY_README html
  virtual virtual c 
  request Reported by John Doe File tlsproxy tlsproxy c 
  smtpd smtpd c smtpd smtpd_chat c global mail_params h 
+ Files Makefile in smtp smtp h smtp smtp_connect c 
index 1ea8819c74810cd30e14140c735f74e6b059f046..85e924775ce37e21d1668ff9d2630ee7f8df2cfb 100644 (file)
@@ -20,7 +20,7 @@
   * Patches change both the patchlevel and the release date. Snapshots have no
   * patchlevel; they change the release date only.
   */
-#define MAIL_RELEASE_DATE      "20250818"
+#define MAIL_RELEASE_DATE      "20250825"
 #define MAIL_VERSION_NUMBER    "3.11"
 
 #ifdef SNAPSHOT
index baa5ca81b357fae62d8ab5c368214e8efd75ede4..38c2eae31232cbce9370141b640a2998a3af9de5 100644 (file)
@@ -1651,7 +1651,7 @@ static void connect_remote(STATE *state, char *dest)
        if (level == TLS_LEV_INVALID
            || (state->stream = connect_addr(state, addr)) == 0) {
            msg_info("Failed to establish session to %s via %s:%u: %s",
-                    dest, HNAME(addr), addr->port,
+                    dest, HNAME(addr), ntohs(state->port),
                     vstring_str(state->why->reason));
            continue;
        }
index 9263c78cc5e2f3b855695afa419b1c24b325b70c..9c1ceccc8753831cfc4b947c8697faa013ca4011 100644 (file)
@@ -472,7 +472,7 @@ DICT   *dict_dbm_open(const char *path, int open_flags, int dict_flags)
        msg_fatal("open database %s: cannot support GDBM", path);
     if (fstat(dict_dbm->dict.stat_fd, &st) < 0)
        msg_fatal("dict_dbm_open: fstat: %m");
-    if (open_mode == O_RDONLY)
+    if (open_flags == O_RDONLY)
        dict_dbm->dict.mtime = st.st_mtime;
     dict_dbm->dict.owner.uid = st.st_uid;
     dict_dbm->dict.owner.status = (st.st_uid != 0);
index 83afcd9ea946beec9889393e1f654d385a9115a5..e951f52f6526b49ae58a5fa86ba373dc4aaa3acf 100644 (file)
@@ -496,9 +496,10 @@ DICT   *dict_open3(const char *dict_type, const char *dict_name,
     VSTRING *reg_name = vstring_alloc(100);
     DICT   *dict;
 
+       /* Workaround for dict_proxy_open() with DICT_FLAG_NO_FILE. */
 #define DICT_OPEN3_RETURN(d) do { \
        DICT *_d = (d); \
-       dict_register(vstring_str(reg_name), _d); \
+       dict_register(_d->reg_name? _d->reg_name : vstring_str(reg_name), _d); \
        vstring_free(reg_name); \
        return (_d); \
     } while (0)