From 4b2dd163e13d8b8914aea85368cc5cbb65623b8f Mon Sep 17 00:00:00 2001 From: Alex 'AdUser' Z Date: Tue, 19 Jan 2021 15:23:12 +1000 Subject: [PATCH] * f2b_source_create() : also bind stats() call --- src/source.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/source.c b/src/source.c index a113911..1a7bae8 100644 --- a/src/source.c +++ b/src/source.c @@ -42,6 +42,8 @@ f2b_source_create(f2b_config_section_t *config, const char *init) { goto cleanup; if ((*(void **) (&source->next) = dlsym(source->h, "next")) == NULL) goto cleanup; + if ((*(void **) (&source->stats) = dlsym(source->h, "stats")) == NULL) + goto cleanup; if ((*(void **) (&source->stop) = dlsym(source->h, "stop")) == NULL) goto cleanup; if ((*(void **) (&source->destroy) = dlsym(source->h, "destroy")) == NULL)