From d000c6b8c73211dbbf4388758e7ccd98564ed110 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Fri, 23 Oct 2009 21:33:48 +0100 Subject: [PATCH] [iscsi] Fix printing of non-existent strings in iBFT debug messages --- src/arch/i386/interface/pcbios/ibft.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/arch/i386/interface/pcbios/ibft.c b/src/arch/i386/interface/pcbios/ibft.c index 718b759f..e0baaa21 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 ); } /**