diff --git a/modules/type/dag/dap_chain_cs_dag.c b/modules/type/dag/dap_chain_cs_dag.c
index cb1ef077b3937f150dbdc3594f9a4141ee0368cc..38c3d260ca23023ae8de28e1d789b71932d18a02 100644
--- a/modules/type/dag/dap_chain_cs_dag.c
+++ b/modules/type/dag/dap_chain_cs_dag.c
@@ -276,6 +276,7 @@ int dap_chain_add_to_ledger(dap_chain_cs_dag_t * a_dag, dap_ledger_t * a_ledger,
     default:
       return -1;
   }
+  return 0;
 }
 
 /**