Skip to content

Commit

Permalink
outfp may be MULL
Browse files Browse the repository at this point in the history
  • Loading branch information
alandekok committed Apr 19, 2014
1 parent 5be020a commit d0364cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/rlm_detail/rlm_detail.c
Expand Up @@ -408,7 +408,7 @@ static rlm_rcode_t detail_do(void *instance, REQUEST *request, RADIUS_PACKET *pa
if ((outfp = fdopen(outfd, "a")) == NULL) {
RERROR("Couldn't open file %s: %s", buffer, fr_syserror(errno));
fail:
fclose(outfp);
if (outfp) fclose(outfp);
fr_logfile_unlock(inst->lf, outfd);
return RLM_MODULE_FAIL;
}
Expand Down

0 comments on commit d0364cf

Please sign in to comment.