projects
/
freeradius.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c344d26
)
Re-set FP after closing it
author
Alan T. DeKok
<aland@freeradius.org>
Sat, 5 Dec 2009 14:54:08 +0000
(15:54 +0100)
committer
Alan T. DeKok
<aland@freeradius.org>
Sat, 5 Dec 2009 14:54:08 +0000
(15:54 +0100)
src/modules/rlm_passwd/rlm_passwd.c
patch
|
blob
|
history
diff --git
a/src/modules/rlm_passwd/rlm_passwd.c
b/src/modules/rlm_passwd/rlm_passwd.c
index
46e5a74
..
ad179fb
100644
(file)
--- a/
src/modules/rlm_passwd/rlm_passwd.c
+++ b/
src/modules/rlm_passwd/rlm_passwd.c
@@
-308,7
+308,10
@@
static struct mypasswd * get_pw_nam(char * name, struct hashtable* ht)
}
return NULL;
}
- if (ht->fp) fclose(ht->fp);
+ if (ht->fp) {
+ fclose(ht->fp);
+ ht->fp = NULL;
+ }
if (!(ht->fp=fopen(ht->filename, "r"))) return NULL;
return get_next(name, ht);
}