struct context * core_start(struct instance *nci) { struct context *ctx; //last = dn_msec_now(); mbuf_init(nci); msg_init(); conn_init(); ctx = core_ctx_create(nci); if (ctx != NULL) { nci->ctx = ctx; if (TRACING_LEVEL == LOG_VVERB) { crypto_check(); } return ctx; } conn_deinit(); msg_deinit(); dmsg_deinit(); mbuf_deinit(); return NULL; }
struct context * core_start(struct instance *nci) { struct context *ctx; mbuf_init(nci); msg_init(); conn_init(); ctx = core_ctx_create(nci); if (ctx != NULL) { nci->ctx = ctx; return ctx; } conn_deinit(); msg_deinit(); mbuf_deinit(); return NULL; }