Conrad Meyer dcbee68850 radix_mpath: Don't derefence a NULL pointer in for loop iteration
It seems rn_dupedkey may be NULL, because of the NULL check inside the loop.
(Also, the rt gets assigned from rn_dupedkey and NULL checked at top of loop.)
However, the for-loop update condition happens before the top-of-loop check and
dereferences 'rt' unconditionally.

Instead, NULL-check before dereferencing.

If rn_dupedkey cannot in fact be NULL, or something else protects this, feel
free to revert this and add an ASSERT of some kind instead.

This was introduced in r191080 (2009) and moved around slightly in r293657.

Reported by:	Coverity
CID:		1348482
Sponsored by:	EMC / Isilon Storage Division
2016-04-26 20:27:17 +00:00
..
2015-08-24 23:40:36 +00:00
2015-09-10 05:59:39 +00:00
2015-10-03 09:15:23 +00:00
2015-04-21 10:35:23 +00:00
2015-04-07 21:31:17 +00:00
2015-12-16 09:18:20 +00:00
2016-03-24 11:40:10 +00:00
2016-03-24 11:40:10 +00:00
2016-02-03 11:49:51 +00:00