Changeset 533
- Timestamp:
- Dec 20, 2017, 9:08:35 PM (7 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/docs/Changelog
r532 r533 6 6 * better fix for RPMTOP detection 7 7 * fix missing entry for yuleadmin.pl in RPM spec file 8 * fix bug in static dns resolver (reported by Piotr G.) 8 9 9 10 4.2.3: -
trunk/src/sh_static.c
r502 r533 908 908 909 909 #undef DEBUG 910 /* #define DEBUG*/910 /* #define DEBUG */ 911 911 912 912 #ifdef DEBUG … … 1000 1000 1001 1001 do { 1002 1003 1002 l = data[offset]; 1003 if (offset < INT_MAX) 1004 1004 offset++; 1005 1005 else 1006 1006 return -1; 1007 1008 l = data[offset]; 1007 if (!l) 1008 break; 1009 1010 DPRINTF("l[%d] = %d\n", offset, l); 1009 1011 1010 1012 if ((l & 0xc0) == (0xc0)) { … … 1023 1025 } while (l); 1024 1026 1027 DPRINTF("orig: %d now %d\n", orig_offset, offset); 1025 1028 return offset - orig_offset; 1026 1029 } … … 1265 1268 h.rd = 1; 1266 1269 1267 DPRINTF("encoding header \n", h.rd);1270 DPRINTF("encoding header %d\n", h.rd); 1268 1271 1269 1272 i = __encode_header(&h, packet, PACKETSZ); … … 1714 1717 char ** __nameserverXX; 1715 1718 1719 DPRINTF("sh_gethostbyname_r: /%s/\n", name); 1716 1720 __open_nameservers(); 1717 1721 … … 1814 1818 free(packet); 1815 1819 *h_errnop=HOST_NOT_FOUND; 1820 DPRINTF("host_not_found\n"); 1816 1821 return TRY_AGAIN; 1817 1822 } … … 1830 1835 sizeof(char *)*(ALIAS_DIM) + 256/*namebuffer*/ + 32/* margin */]; 1831 1836 struct hostent *hp; 1832 1837 1838 DPRINTF("sh_gethostbyname: /%s/\n", name); 1833 1839 sh_gethostbyname_r(name, &h, buf, sizeof(buf), &hp, &h_errno); 1834 1835 1840 return hp; 1836 1841 } … … 1891 1896 char ** __nameserverXX; 1892 1897 1898 DPRINTF("sh_gethostbyaddr_r called\n"); 1893 1899 *result=NULL; 1894 1900 if (!addr) … … 2061 2067 struct hostent *hp; 2062 2068 2069 DPRINTF("sh_gethostbyaddr called\n"); 2063 2070 sh_gethostbyaddr_r(addr, len, type, &h, buf, sizeof(buf), &hp, &h_errno); 2064 2071
Note:
See TracChangeset
for help on using the changeset viewer.