Whamcloud - gitweb
LU-4629 utils: fix NULL pointer dereference 36/10136/4
authorDmitry Eremin <dmitry.eremin@intel.com>
Mon, 28 Apr 2014 20:00:58 +0000 (00:00 +0400)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 11 Jun 2014 02:46:36 +0000 (02:46 +0000)
commit54abe281c91edc1e564afbb233779418b887e625
tree115d08928d84f6742f0d05304cada1e97f40abfc
parentec98d93ff50ca43f137db01261bf1ab55a1d5e53
LU-4629 utils: fix NULL pointer dereference

'uuid' and 'lnet' can be NULL. So check for this case.

Signed-off-by: Dmitry Eremin <dmitry.eremin@intel.com>
Change-Id: I06ead7470649054ca5bd0e0395f5e817c08bc2db
Reviewed-on: http://review.whamcloud.com/10136
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Reviewed-by: James Simmons <uja.ornl@gmail.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/utils/lustre_cfg.c
lustre/utils/nidlist.c