CID #1325789
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 7 Oct 2015 23:16:17 +0000 (19:16 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 8 Oct 2015 14:23:29 +0000 (10:23 -0400)
src/main/modules.c

index b21ee89..e05835b 100644 (file)
@@ -218,7 +218,7 @@ lt_dlhandle lt_dlopenext(char const *name)
 
                        fr_strerror_printf("%s%s\n", fr_strerror(), error);
                        DEBUG4("Loading %s failed: %s - %s", name, error,
-                              (access(buffer, R_OK) < 0) ? fr_syserror(errno) : "No access errors");
+                              (access(path, R_OK) < 0) ? fr_syserror(errno) : "No access errors");
                        talloc_free(path);
                }
                talloc_free(ctx);