summaryrefslogtreecommitdiffstats
path: root/src/drivers/block
diff options
context:
space:
mode:
authorMichael Brown2011-02-25 00:39:38 +0100
committerMichael Brown2011-02-25 00:39:38 +0100
commitdef5b67560f559ec23370225747374a3bae3631d (patch)
treec9529b482d014d220e30b6b4e7afd757c21d8b62 /src/drivers/block
parent[iscsi] Accept NOP-In PDUs sent by the target (diff)
downloadipxe-def5b67560f559ec23370225747374a3bae3631d.tar.gz
ipxe-def5b67560f559ec23370225747374a3bae3631d.tar.xz
ipxe-def5b67560f559ec23370225747374a3bae3631d.zip
[iscsi] Fix minor typo in ibft_set_ipaddr()
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/drivers/block')
-rw-r--r--src/drivers/block/ibft.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/block/ibft.c b/src/drivers/block/ibft.c
index 932a00b5..9df362ac 100644
--- a/src/drivers/block/ibft.c
+++ b/src/drivers/block/ibft.c
@@ -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;