2
0
mirror of https://github.com/xcat2/xNBA.git synced 2025-02-15 01:58:22 +00:00

[iscsi] Fix minor typo in ibft_set_ipaddr()

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown 2011-02-24 23:39:38 +00:00
parent 711df439df
commit def5b67560

View File

@ -91,7 +91,7 @@ struct ibft_strings {
* @v in IPv4 address
*/
static void ibft_set_ipaddr ( struct ibft_ipaddr *ipaddr, struct in_addr in ) {
memset ( ipaddr, 0, sizeof ( ipaddr ) );
memset ( ipaddr, 0, sizeof ( *ipaddr ) );
if ( in.s_addr ) {
ipaddr->in = in;
ipaddr->ones = 0xffff;