Changeset 22315 in vbox for trunk/src/VBox/Devices/Network/slirp
- Timestamp:
- Aug 18, 2009 7:42:12 AM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 51191
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/slirp/slirp.c
r22240 r22315 1466 1466 { 1467 1467 struct ethhdr *eh; 1468 uint8_t *buf = RTMemAlloc(1600);1468 uint8_t *buf = NULL; 1469 1469 STAM_PROFILE_START(&pData->StatIF_encap, a); 1470 1470 … … 1490 1490 } 1491 1491 } 1492 1492 buf = RTMemAlloc(1600); 1493 if (buf == NULL) 1494 { 1495 LogRel(("NAT: Can't alloc memory for outgoing buffer\n")); 1496 goto done; 1497 } 1493 1498 eh->h_proto = htons(eth_proto); 1494 1499 memcpy(buf, mtod(m, uint8_t *), m->m_len);
Note:
See TracChangeset
for help on using the changeset viewer.