Fix segmentation fault while specifying clustername with rbd engine
authorJevon Qiao <scaleqiao@gmail.com>
Thu, 28 Jul 2016 07:22:40 +0000 (15:22 +0800)
committerJevon Qiao <scaleqiao@gmail.com>
Thu, 28 Jul 2016 07:22:40 +0000 (15:22 +0800)
commit89e5ec960081f40b19017c21906ca9be139f9dea
treebc1f8145d51599e20e9462354befb33fdac128c3
parentc915aa3b56b72c3c9eac3b92f89f22a18ccf0047
Fix segmentation fault while specifying clustername with rbd engine

Fio with rbd engine will panic if clustername option is specified but clientname
is not. In that case, o->client_name will be a NULL pointer, strlen(o->client_name) in _fio_rbd_connect() will lead to the segmentation fault.

Signed-off-by: Jevon Qiao <scaleqiao@gmail.com>
engines/rbd.c