Commit cc3cd17b authored by Dridi Boukelmoune's avatar Dridi Boukelmoune

Assert

parent 7cee37c0
...@@ -774,6 +774,8 @@ HSH_Cancel(struct worker *wrk, struct objcore *oc, struct boc *boc) ...@@ -774,6 +774,8 @@ HSH_Cancel(struct worker *wrk, struct objcore *oc, struct boc *boc)
{ {
struct boc *bocref = NULL; struct boc *bocref = NULL;
CHECK_OBJ_NOTNULL(oc, OBJCORE_MAGIC);
if ((oc->flags & (OC_F_PRIVATE | OC_F_HFM | OC_F_HFP)) == 0) if ((oc->flags & (OC_F_PRIVATE | OC_F_HFM | OC_F_HFP)) == 0)
return; return;
...@@ -784,6 +786,8 @@ HSH_Cancel(struct worker *wrk, struct objcore *oc, struct boc *boc) ...@@ -784,6 +786,8 @@ HSH_Cancel(struct worker *wrk, struct objcore *oc, struct boc *boc)
if (boc == NULL) if (boc == NULL)
bocref = boc = HSH_RefBoc(oc); bocref = boc = HSH_RefBoc(oc);
CHECK_OBJ_ORNULL(boc, BOC_MAGIC);
if (oc->flags & OC_F_HFP) if (oc->flags & OC_F_HFP)
AN(oc->flags & OC_F_HFM); AN(oc->flags & OC_F_HFM);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment