Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[iscsiboot] Fix calculation of subnet masks with a non-byte boundary
  • Loading branch information
mcb30 committed Dec 19, 2008
1 parent b063091 commit 010b4e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion driver/iscsiboot.c
Expand Up @@ -786,7 +786,7 @@ static NTSTATUS store_tcpip_parameters ( PIBFT_NIC nic,
goto err_reg_store;

/* Store subnet mask */
subnet_mask = ( 0xffffffffUL >> ( 32 - nic->subnet_mask_prefix ) );
subnet_mask = RtlUlongByteSwap ( 0xffffffffUL << ( 32 - nic->subnet_mask_prefix ) );
status = store_ipv4_parameter_multi_sz ( reg_key, L"SubnetMask",
subnet_mask );
if ( ! NT_SUCCESS ( status ) )
Expand Down

0 comments on commit 010b4e7

Please sign in to comment.