diff --git a/libs/openzap/src/zap_zt.c b/libs/openzap/src/zap_zt.c index 3313216f6c..b2ee4c95b8 100644 --- a/libs/openzap/src/zap_zt.c +++ b/libs/openzap/src/zap_zt.c @@ -707,7 +707,7 @@ zap_status_t zt_init(zap_io_interface_t **zio) if ((CONTROL_FD = open(ctlpath, O_RDWR)) < 0) { zap_log(ZAP_LOG_ERROR, "Cannot open control device\n"); - return 0; + return ZAP_FAIL; } zt_globals.codec_ms = 20;