]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Bug fix to get radsniff working 2103/head
authorPhilippe Wooding <philippe.wooding@networkradius.com>
Fri, 27 Oct 2017 09:15:56 +0000 (11:15 +0200)
committerPhilippe Wooding <philippe.wooding@networkradius.com>
Fri, 27 Oct 2017 09:15:56 +0000 (11:15 +0200)
src/lib/util/event.c

index 060f163050b62066d2e37c4d73386e77fbbba123..84f9e46626b0d56584ff2d70fed4aa1447f8b695 100644 (file)
@@ -545,9 +545,9 @@ static int fr_event_fd_type_set(fr_event_fd_t *ef, int fd)
                } else
 #endif
                {
-                       ef->sock_type = sock_type;
                        ef->type = FR_EVENT_FD_SOCKET;
                }
+               ef->sock_type = sock_type;
 
        /*
         *      It's a file or directory