]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
The file may be closed when there are no VPs
authorAlan T. DeKok <aland@freeradius.org>
Fri, 8 Apr 2011 11:04:25 +0000 (13:04 +0200)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 8 Apr 2011 11:04:25 +0000 (13:04 +0200)
src/main/detail.c

index 993c9831f500058c76e98c62c5a45317193da52f..c28bad7b9c2f85e81beb4c07186b390fa1d49742 100644 (file)
@@ -604,7 +604,7 @@ int detail_recv(rad_listen_t *listener,
         */
        if (!data->vps) {
                data->state = STATE_HEADER;
-               if (feof(data->fp)) goto cleanup; 
+               if (!data->fp || feof(data->fp)) goto cleanup; 
                return 0;
        }