[Bugs] [Bug 789278] Issues reported by Coverity static analysis tool

bugzilla at redhat.com bugzilla at redhat.com
Wed Nov 8 18:06:42 UTC 2017


https://bugzilla.redhat.com/show_bug.cgi?id=789278



--- Comment #1160 from Worker Ant <bugzilla-bot at gluster.org> ---
COMMIT: https://review.gluster.org/18389 committed in master by  

------------- glusterd: Coverity Issue FORWARD_NULL fix

Problems: According to Coverity Issue ID 207
issues are as follows-

a-) Dereferencing "this" pointer without checking if it points to NULL.
b-) The IF condition on line 1750 should check
    if any *one* of dict, this or peerinfo is NULL
    and not *all*.

Fix:
Replace the && operator with || to check if any *one* of
this, dict or peerinfo is NULL and then execute out label.

Change-Id: I40057d6cade71d3862c8e491bf4137cf25dda327
BUG: 789278
Signed-off-by: Vishal Pandey <vishpandey2014 at gmail.com>

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Bugs mailing list