diff options
| author | Michael Brown | 2009-10-23 22:33:48 +0200 |
|---|---|---|
| committer | Michael Brown | 2009-10-23 22:33:48 +0200 |
| commit | d000c6b8c73211dbbf4388758e7ccd98564ed110 (patch) | |
| tree | 8ba950826b699507b5827c1bb4c328152dc16376 /src | |
| parent | [release] Update version to 0.9.9+ post release (diff) | |
| download | ipxe-d000c6b8c73211dbbf4388758e7ccd98564ed110.tar.gz ipxe-d000c6b8c73211dbbf4388758e7ccd98564ed110.tar.xz ipxe-d000c6b8c73211dbbf4388758e7ccd98564ed110.zip | |
[iscsi] Fix printing of non-existent strings in iBFT debug messages
Diffstat (limited to 'src')
| -rw-r--r-- | src/arch/i386/interface/pcbios/ibft.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/arch/i386/interface/pcbios/ibft.c b/src/arch/i386/interface/pcbios/ibft.c index 718b759f4..e0baaa219 100644 --- a/src/arch/i386/interface/pcbios/ibft.c +++ b/src/arch/i386/interface/pcbios/ibft.c @@ -236,7 +236,8 @@ static int ibft_set_string_option ( struct ibft_string_block *strings, */ static const char * ibft_string ( struct ibft_string_block *strings, struct ibft_string *string ) { - return ( ( ( char * ) strings->table ) + string->offset ); + return ( string->offset ? + ( ( ( char * ) strings->table ) + string->offset ) : NULL ); } /** |
