diff -ru mc-4.8.10.orig/src/vfs/smbfs/helpers/lib/util.c mc-4.8.10/src/vfs/smbfs/helpers/lib/util.c
old
|
new
|
|
1841 | 1841 | /* Ensure null termination. */ |
1842 | 1842 | hostname[sizeof (hostname) - 1] = '\0'; |
1843 | 1843 | |
1844 | | /* get host info */ |
1845 | | if ((hp = Get_Hostbyname (hostname)) == 0) |
1846 | | { |
1847 | | DEBUG (0, ("Get_Hostbyname: Unknown host %s\n", hostname)); |
1848 | | return False; |
| 1844 | if (ip) { /* query the ip only if it is requested */ |
| 1845 | /* get host info */ |
| 1846 | if ((hp = Get_Hostbyname (hostname)) == 0) |
| 1847 | { |
| 1848 | DEBUG (0, ("Get_Hostbyname: Unknown host %s\n", hostname)); |
| 1849 | return False; |
| 1850 | } |
1849 | 1851 | } |
1850 | 1852 | |
1851 | 1853 | if (my_name) |
… |
… |
|
2474 | 2476 | return (ret); |
2475 | 2477 | } |
2476 | 2478 | |
| 2479 | #if 0 |
| 2480 | /* IMHO this is useless and only increases the timeout */ |
| 2481 | |
2477 | 2482 | /* try with all lowercase */ |
2478 | 2483 | strlower (name2); |
2479 | 2484 | ret = sys_gethostbyname (name2); |
… |
… |
|
2491 | 2496 | free (name2); |
2492 | 2497 | return (ret); |
2493 | 2498 | } |
| 2499 | #endif |
2494 | 2500 | |
2495 | 2501 | /* nothing works :-( */ |
2496 | 2502 | free (name2); |