]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
originated CoA packets may not have a listener.
authorAlan T. DeKok <aland@freeradius.org>
Mon, 5 Apr 2021 13:21:15 +0000 (09:21 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 5 Apr 2021 13:21:15 +0000 (09:21 -0400)
src/modules/rlm_detail/rlm_detail.c

index 5d5ab846d8616e55a5df258612521cb92d308b40..379f697a63b7fcf9120083272e41bce66174ca21 100644 (file)
@@ -379,7 +379,7 @@ static rlm_rcode_t CC_HINT(nonnull) detail_do(void *instance, REQUEST *request,
         *      suppress the write.  This check prevents an infinite
         *      loop.
         */
-       if ((request->listener->type == RAD_LISTEN_DETAIL) &&
+       if (request->listener && (request->listener->type == RAD_LISTEN_DETAIL) &&
            (fnmatch(((listen_detail_t *)request->listener->data)->filename,
                     buffer, FNM_FILE_NAME | FNM_PERIOD ) == 0)) {
                RWDEBUG2("Suppressing infinite loop");