]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Fix typo
authorAlan T. DeKok <aland@freeradius.org>
Fri, 7 Oct 2011 22:14:02 +0000 (00:14 +0200)
committerAlan T. DeKok <aland@freeradius.org>
Sun, 9 Oct 2011 16:16:33 +0000 (18:16 +0200)
compare type to RAD_LISTEN_DETAIL

src/modules/rlm_detail/rlm_detail.c

index 33a3a0dfa025f4900b322e2a5cb2b2efb9f95d57..97fd5e427a12650f98ea8d22e9fd4d03e14f0e84 100644 (file)
@@ -219,7 +219,7 @@ static int do_detail(void *instance, REQUEST *request, RADIUS_PACKET *packet,
         *      suppress the write.  This check prevents an infinite
         *      loop.
         */
-       if ((request->listener == RAD_LISTEN_DETAIL) &&
+       if ((request->listener->type == RAD_LISTEN_DETAIL) &&
            (fnmatch(((listen_detail_t *)request->listener->data)->filename,
                     buffer, FNM_FILE_NAME | FNM_PERIOD ) == 0)) {
                RDEBUG2("WARNING: Suppressing infinite loop.");