Changeset 50480 in vbox
- Timestamp:
- Feb 17, 2014 3:10:07 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/NetworkServices/NAT/VBoxNetLwipNAT.cpp
r50450 r50480 650 650 int rc = VINF_SUCCESS; 651 651 int socketSpec = SOCK_STREAM; 652 c har *pszHostAddr;652 const char *pszHostAddr; 653 653 int sockFamily = (natPf.Pfr.fPfrIPv6 ? PF_INET6 : PF_INET); 654 654 … … 666 666 667 667 pszHostAddr = natPf.Pfr.szPfrHostAddr; 668 669 /* XXX: workaround for inet_pton and an empty ipv4 address 670 * in rule declaration. 671 */ 672 if ( sockFamily == PF_INET 673 && pszHostAddr[0] == 0) 674 pszHostAddr = (char *)"0.0.0.0"; /* XXX: fix it! without type cast */ 675 668 if (sockFamily == PF_INET && pszHostAddr[0] == '\0') 669 pszHostAddr = "0.0.0.0"; 676 670 677 671 lrc = fwspec_set(&natPf.FWSpec,
Note:
See TracChangeset
for help on using the changeset viewer.