git.samba.org
/
metze
/
wireshark
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fb6610f
)
Make sure we don't try to close an already-closed file.
author
Gerald Combs
<gerald@wireshark.org>
Tue, 20 Dec 2005 02:50:04 +0000
(
02:50
-0000)
committer
Gerald Combs
<gerald@wireshark.org>
Tue, 20 Dec 2005 02:50:04 +0000
(
02:50
-0000)
svn path=/trunk/; revision=16863
epan/radius_dict.l
patch
|
blob
|
history
diff --git
a/epan/radius_dict.l
b/epan/radius_dict.l
index 3ea07a028d27db7d8bc26957aa89566e05ab2372..d5233d072f7022b4ddbd8e97f3f69c689b1c23f5 100644
(file)
--- a/
epan/radius_dict.l
+++ b/
epan/radius_dict.l
@@
-192,7
+192,8
@@
<<EOF>> {
- fclose(yyin);
+ fclose(yyin);
+ yyin = NULL;
if ( --include_stack_ptr < 0 ) {
yyterminate();
@@
-377,7
+378,8
@@
radius_dictionary_t* radius_load_dictionary (gchar* dir, const gchar* filename,
yylex();
- fclose(yyin);
+ if (yyin != NULL) fclose(yyin);
+ yyin = NULL;
for (i=0; i < 10; i++) {
if (fullpaths[i]) g_free(fullpaths[i]);