socketcan-bcm: Fix wrongly opened socket
[apps/agl-service-can-low-level.git] / low-can-binding / utils / socketcan-bcm.cpp
index e992ccb..515b2fb 100644 (file)
@@ -44,6 +44,7 @@ namespace utils
                {
                        AFB_ERROR("ioctl failed. Error was : %s", strerror(errno));
                        close();
+                       return -1;
                }
                else
                {