]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Fix NAS port struct
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 20 Dec 2018 00:07:43 +0000 (08:07 +0800)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 20 Dec 2018 00:07:43 +0000 (08:07 +0800)
src/modules/rlm_radutmp/rlm_radutmp.c

index 7e66b757d5dd87ee1069f1e80f5b43d49f5ac64b..1da9c3591b9d657c6f44b76619ad5e1abb3c4ee2 100644 (file)
@@ -39,12 +39,13 @@ static char const porttypes[] = "ASITX";
 /*
  *     used for caching radutmp lookups in the accounting component.
  */
-typedef struct {
+typedef struct nas_port_s NAS_PORT;
+struct nas_port_s {
        uint32_t                nasaddr;
        uint16_t                port;
        off_t                   offset;
-       struct nas_port         *next;
-} NAS_PORT;
+       NAS_PORT                *next;
+};
 
 typedef struct {
        NAS_PORT        *nas_port_list;