git: DragonFly_RELEASE_2_6 iscsi_initiator(4): Fix a potential N

看板DFBSD_commit作者時間15年前 (2010/08/30 04:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
commit a8f1906bc6aa971946d4d1f53b09303fb5898c2d Author: Sascha Wildner <saw@online.de> Date: Sun Aug 29 21:13:27 2010 +0200 iscsi_initiator(4): Fix a potential NULL pointer dereference. If sp can be NULL (as the rest of the code suggests), we can't use sdebug() since that prints the string with sp->sid prepended (thereby dereferencing NULL). Instead, use debug() and add sp->sid to its string (with a check for NULL). While here, fix some indentation issues. Summary of changes: sys/dev/disk/iscsi/initiator/isc_soc.c | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/a8f1906bc6aa971946d4d1f53b09303fb5898c2d -- DragonFly BSD source repository
文章代碼(AID): #1CUho1pD (DFBSD_commit)