]> rtime.felk.cvut.cz Git - frescor/frsh.git/blobdiff - frsh_api/frsh_contract.c
Handle properly errors when manager is not registered
[frescor/frsh.git] / frsh_api / frsh_contract.c
index b2317cb5860f71a07273557d8aec124755fd9921..82aae31d820b564e46c1f479dee9744a62088b65 100644 (file)
@@ -374,8 +374,9 @@ int frsh_contract_negotiate
        /* Activate allocator */
        r = fres_contract_get_resource(*contract);
        if (r) {
-               fra_activate(r->resource_type,
-                            r->resource_id);
+               ret = fra_activate(r->resource_type,
+                                  r->resource_id);
+               if (ret) goto err;
        }
 
        /* Negotiate contract */