|
@@ -82,9 +82,9 @@ static int test_dhcp_iscsi_boot ( struct net_device *netdev ) {
|
82
|
82
|
|
83
|
83
|
lun = strtoul ( rp_components[RP_LUN], NULL, 0 );
|
84
|
84
|
|
85
|
|
- dhcp_snprintf ( initiator_iqn, sizeof ( initiator_iqn ),
|
|
85
|
+ dhcp_snprintf ( initiator_iqn_buf, sizeof ( initiator_iqn_buf ),
|
86
|
86
|
find_global_dhcp_option ( DHCP_ISCSI_INITIATOR_IQN ) );
|
87
|
|
- if ( ! *initiator_iqn )
|
|
87
|
+ if ( ! initiator_iqn_buf[0] )
|
88
|
88
|
initiator_iqn = "iqn.1900-01.localdomain.localhost:initiator";
|
89
|
89
|
dhcp_snprintf ( username, sizeof ( username ),
|
90
|
90
|
find_global_dhcp_option ( DHCP_EB_USERNAME ) );
|