imv-os: check_packages() fails if product query fails
authorTobias Brunner <tobias@strongswan.org>
Wed, 24 Jul 2013 09:04:34 +0000 (11:04 +0200)
committerTobias Brunner <tobias@strongswan.org>
Wed, 24 Jul 2013 14:17:22 +0000 (16:17 +0200)
src/libimcv/plugins/imv_os/imv_os_database.c

index 3cdbebf..d2a08b0 100644 (file)
@@ -67,6 +67,7 @@ METHOD(imv_os_database_t, check_packages, status_t,
                                DB_TEXT, product, DB_INT);
        if (!e)
        {
+               return FAILED;
        }
        if (!e->enumerate(e, &pid))
        {