Changeset 295 for trunk/src/sh_mail.c
- Timestamp:
- Oct 31, 2010, 10:36:04 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/sh_mail.c
r290 r295 62 62 #include "sh_mail_int.h" 63 63 #include "sh_nmail.h" 64 #include "sh_ipvx.h" 64 65 65 66 #undef FIL__ … … 1113 1114 (void) fflush(connFile); 1114 1115 1115 if (0 != is_numeric(sh.host.name))1116 if (0 != sh_ipvx_is_numeric(sh.host.name)) 1116 1117 { 1117 1118 sl_snprintf(error_msg, sizeof(error_msg), "HELO [%s]", … … 1125 1126 report_smtp(error_msg); 1126 1127 1127 if (0 != is_numeric(sh.host.name))1128 if (0 != sh_ipvx_is_numeric(sh.host.name)) 1128 1129 fprintf(connFile, _("HELO [%s]%c%c"), sh.host.name, 13, 10); 1129 1130 else … … 1150 1151 { 1151 1152 (void) sl_strlcat (this_address, "@", 256); 1152 if (0 != is_numeric(sh.host.name))1153 if (0 != sh_ipvx_is_numeric(sh.host.name)) 1153 1154 (void) sl_strlcat (this_address, _("example.com"), 256); 1154 1155 else … … 1866 1867 mx * result; 1867 1868 dnsrep * retval; 1869 char * address = NULL; 1868 1870 char errmsg[128]; 1869 size_t len;1870 1871 1871 1872 SL_ENTER(_("return_mx")); … … 1884 1885 else 1885 1886 { 1887 char numeric[SH_IP_BUF]; 1888 1886 1889 if (domain != NULL) 1887 1890 { … … 1904 1907 } 1905 1908 1906 SH_MUTEX_LOCK(mutex_resolv); 1907 1909 retval = NULL; 1908 1910 host = NULL; 1909 retval = NULL;1910 1911 1911 1912 if (domain != NULL) 1912 host = /*@-unrecog@*/sh_gethostbyname (domain)/*@+unrecog@*/;1913 1914 if ( host)1913 address = sh_ipvx_canonical(domain, numeric, sizeof(numeric)); 1914 1915 if (address) 1915 1916 { 1916 1917 result = SH_ALLOC (sizeof (mx)); … … 1919 1920 retval->count = 1; 1920 1921 result->pref = 0; 1921 /*@-type@*/ 1922 len = strlen (host->h_name) + 1; 1923 result->address = SH_ALLOC (len); 1924 sl_strlcpy (result->address, host->h_name, len); 1925 /*@+type@*/ 1926 } 1927 SH_MUTEX_UNLOCK(mutex_resolv); 1928 1929 if (!host) 1922 1923 result->address = address; 1924 } 1925 else 1930 1926 { 1931 1927 #ifdef FIL__
Note:
See TracChangeset
for help on using the changeset viewer.