From: Alan T. DeKok Date: Fri, 8 Apr 2011 11:04:25 +0000 (+0200) Subject: The file may be closed when there are no VPs X-Git-Tag: release_2_1_11~57 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=50df0254fe9cc839329992b6b8942ac564e79cf8;p=thirdparty%2Ffreeradius-server.git The file may be closed when there are no VPs --- diff --git a/src/main/detail.c b/src/main/detail.c index 993c9831f50..c28bad7b9c2 100644 --- a/src/main/detail.c +++ b/src/main/detail.c @@ -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; }