]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
pass listener, not app_io_instance
authorAlan T. DeKok <aland@freeradius.org>
Fri, 21 Sep 2018 14:51:41 +0000 (10:51 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 21 Sep 2018 14:51:41 +0000 (10:51 -0400)
src/modules/proto_detail/proto_detail_file.c

index fbee5ce527f45b1b32fdb9c4baeecfdf1c61fc7a..bef5dc873577105a38fbe35f4fd43563c81919aa 100644 (file)
@@ -372,7 +372,7 @@ static int work_exists(proto_detail_file_t *inst, int fd)
        /*
         *      Open the detail.work file.
         */
-       if (li->app_io->open(li->app_io_instance) < 0) {
+       if (li->app_io->open(li) < 0) {
                ERROR("Failed opening %s", li->app_io->name);
                goto error;
        }
@@ -387,7 +387,7 @@ static int work_exists(proto_detail_file_t *inst, int fd)
                inst->vnode_fd = -1;
 
                if (opened) {
-                       (void) li->app_io->close(li->app_io_instance);
+                       (void) li->app_io->close(li);
                        li = NULL;
                }