|
|
|
|
82
|
|
82
|
|
83
|
lun = strtoul ( rp_components[RP_LUN], NULL, 0 );
|
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
|
find_global_dhcp_option ( DHCP_ISCSI_INITIATOR_IQN ) );
|
86
|
find_global_dhcp_option ( DHCP_ISCSI_INITIATOR_IQN ) );
|
87
|
- if ( ! *initiator_iqn )
|
|
|
|
|
87
|
+ if ( ! initiator_iqn_buf[0] )
|
88
|
initiator_iqn = "iqn.1900-01.localdomain.localhost:initiator";
|
88
|
initiator_iqn = "iqn.1900-01.localdomain.localhost:initiator";
|
89
|
dhcp_snprintf ( username, sizeof ( username ),
|
89
|
dhcp_snprintf ( username, sizeof ( username ),
|
90
|
find_global_dhcp_option ( DHCP_EB_USERNAME ) );
|
90
|
find_global_dhcp_option ( DHCP_EB_USERNAME ) );
|