- Timestamp:
- Feb 8, 2011 4:07:43 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/VBoxNetAdp/freebsd/VBoxNetAdp-freebsd.c
r35898 r35900 157 157 { 158 158 case VBOXNETADP_CTL_ADD: 159 if ( !(iCmd & IOC_ OUT) /* paranoia*/159 if ( !(iCmd & IOC_INOUT) /* paranoia*/ 160 160 || IOCPARM_LEN(iCmd) < sizeof(*pReq)) 161 161 return EINVAL; 162 162 163 rc = vboxNetAdpCreate(&pAdp, NULL); 163 rc = vboxNetAdpCreate(&pAdp, 164 pReq->szName[0] && RTStrEnd(pReq->szName, RT_MIN(cbReq, sizeof(pReq->szName))) ? 165 pReq->szName : NULL); 164 166 if (RT_FAILURE(rc)) 165 167 return EINVAL;
Note:
See TracChangeset
for help on using the changeset viewer.