summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@diac24.net>2019-04-28 16:19:55 +0200
committerGitHub <noreply@github.com>2019-04-28 16:19:55 +0200
commit9f9e9ef825a0148b993e4ca16fcadb52fa943a27 (patch)
tree950bb88b8d2aa040abeecc10b0ea36ca21495877
parentMerge pull request #4209 from dslicenc/zebra-nexthop-update-flag (diff)
parentlib: Fix workqueue error function callback (diff)
downloadfrr-9f9e9ef825a0148b993e4ca16fcadb52fa943a27.tar.xz
frr-9f9e9ef825a0148b993e4ca16fcadb52fa943a27.zip
Merge pull request #4159 from sworleys/WQ-ErrFunc-Fix
lib: Fix workqueue error function callback
-rw-r--r--lib/workqueue.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/workqueue.c b/lib/workqueue.c
index 066d81f35..54090d0d0 100644
--- a/lib/workqueue.c
+++ b/lib/workqueue.c
@@ -280,7 +280,7 @@ int work_queue_run(struct thread *thread)
if (item->ran > wq->spec.max_retries) {
/* run error handler, if any */
if (wq->spec.errorfunc)
- wq->spec.errorfunc(wq, item->data);
+ wq->spec.errorfunc(wq, item);
work_queue_item_remove(wq, item);
continue;
}