From 32e9ed7da99d1e1ed87e7e08273ef535158dba6a Mon Sep 17 00:00:00 2001 From: Gerald Combs Date: Tue, 20 Dec 2005 02:50:04 +0000 Subject: Make sure we don't try to close an already-closed file. svn path=/trunk/; revision=16863 --- epan/radius_dict.l | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'epan/radius_dict.l') diff --git a/epan/radius_dict.l b/epan/radius_dict.l index 3ea07a028d..d5233d072f 100644 --- a/epan/radius_dict.l +++ b/epan/radius_dict.l @@ -192,7 +192,8 @@ <> { - 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]); -- cgit v1.2.1