File netqmail-cname.patch of Package netqmail

See http://www.ornl.gov/lists/mailing-lists/qmail/2010/10/msg00018.html

(C) 2013 Peter Conrad <conrad@quisquis.de>

This file is licensed under the terms of the
GNU General Public License Version 2. A copy of these terms should be
enclosed as "gpl-2.0.txt" in the package containing this file.

--- netqmail-1.06/qmail-remote.c.orig	2013-04-23 09:39:35.000000000 +0200
+++ netqmail-1.06/qmail-remote.c	2013-04-23 09:40:16.000000000 +0200
@@ -829,13 +829,7 @@
   if (!stralloc_cats(saout,"@")) temp_nomem();
  
   if (!stralloc_copys(&canonhost,s + j + 1)) temp_nomem();
-  if (flagcname)
-    switch(dns_cname(&canonhost)) {
-      case 0: *flagalias = 0; break;
-      case DNS_MEM: temp_nomem();
-      case DNS_SOFT: temp_dnscanon();
-      case DNS_HARD: ; /* alias loop, not our problem */
-    }
+  if (flagcname) { *flagalias = 0; }
 
   if (!stralloc_cat(saout,&canonhost)) temp_nomem();
 }
openSUSE Build Service is sponsored by