summaryrefslogtreecommitdiffstats
path: root/xlators/storage/posix/src
diff options
context:
space:
mode:
authorSunny Kumar <sunkumar@redhat.com>2018-07-17 15:56:35 +0530
committerShyamsundar Ranganathan <srangana@redhat.com>2018-08-16 14:31:14 +0000
commite09e3549c293f0d7f448ebb70a4e9fcc671ea098 (patch)
tree59ee5bb57a838161004e34bf966b0ced75e8e758 /xlators/storage/posix/src
parent27ffcfebd7e1ec1d068adcfb78cabe014c14c62f (diff)
geo-rep : fix possible crash
Problem : In 'glusterd_verify_slave' while tokenizing error message we call 'strtok_r' and store return value in 'tmp' which can be NULL. We are passing this 'tmp' as 1st argument to 'strcmp' which will lead to segmentation fault. Solution : before calling 'strcmp' we should NULL check 'tmp'. Backport of: > Change-Id: Ifd3864b904afe6cd09d9e5a4b55c6d0578e22b9d > BUG: 1602121 > Signed-off-by: Sunny Kumar <sunkumar@redhat.com> Change-Id: Ifd3864b904afe6cd09d9e5a4b55c6d0578e22b9d fixes: bz#1611115 Signed-off-by: Sunny Kumar <sunkumar@redhat.com>
Diffstat (limited to 'xlators/storage/posix/src')
0 files changed, 0 insertions, 0 deletions