Skip to content

Commit

Permalink
fixes #689
Browse files Browse the repository at this point in the history
  • Loading branch information
rastislavs committed Jan 17, 2017
1 parent 0c9c481 commit dd947fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/executables/sysrepo-plugind.c
Expand Up @@ -140,7 +140,7 @@ sr_pd_load_plugin(sr_session_ctx_t *session, const char *plugin_filename, sr_pd_

/* get cleanup function pointer */
*(void **) (&plugin_ctx->cleanup_cb) = dlsym(plugin_ctx->dl_handle, SR_PLUGIN_CLEANUP_FN_NAME);
if (NULL == plugin_ctx->init_cb) {
if (NULL == plugin_ctx->cleanup_cb) {
SR_LOG_WRN("Unable to find '%s' function: %s.", SR_PLUGIN_CLEANUP_FN_NAME, dlerror());
rc = SR_ERR_INIT_FAILED;
goto cleanup;
Expand Down

0 comments on commit dd947fe

Please sign in to comment.