projects
/
freeradius.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2df4d84
)
Set FP to NULL if it's not being used
author
Alan T. DeKok
<aland@freeradius.org>
Fri, 17 Apr 2015 15:39:59 +0000
(11:39 -0400)
committer
Alan T. DeKok
<aland@freeradius.org>
Fri, 17 Apr 2015 15:39:59 +0000
(11:39 -0400)
src/main/detail.c
patch
|
blob
|
history
diff --git
a/src/main/detail.c
b/src/main/detail.c
index
f81eb0e
..
4c72d9e
100644
(file)
--- a/
src/main/detail.c
+++ b/
src/main/detail.c
@@
-201,6
+201,7
@@
static int detail_open(rad_listen_t *this)
* this file will be read && processed before the
* file globbing is done.
*/
+ data->fp = NULL;
data->work_fd = open(data->filename_work, O_RDWR);
if (data->work_fd < 0) {
#ifndef HAVE_GLOB_H
@@
-456,6
+457,7
@@
open_file:
* try again.
*/
close(data->work_fd);
+ data->fp = NULL;
data->work_fd = -1;
data->state = STATE_UNOPENED;
return NULL;