consumer relayd interaction: fix segfaults
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 1 May 2013 20:43:37 +0000 (16:43 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 1 May 2013 20:43:37 +0000 (16:43 -0400)
commitf96e4545bd7a4dd9c58eb7e8a42eafe0b18089ad
tree9d157cd327c8e527e9f72510367f0c8af650ae55
parent4dc3dfc55223dae057447c03a1e7aadc2c177b3a
consumer relayd interaction: fix segfaults

State where control socket is unset but data socket is set for a relayd
socket pair can be reached if relayd suddently disconnects at the wrong
time. Ensure we always verify that the file descriptors and operations
are initialized before using them.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
src/common/consumer.c
src/common/relayd/relayd.c
This page took 0.025234 seconds and 4 git commands to generate.