Module: sip-router Branch: kamailio_3.0 Commit: b5ef768bcabf905d455ca26225c55f858cbe4c48 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=b5ef768b...
Author: Marius Zbihlei marius.zbihlei@1and1.ro Committer: Marius Zbihlei marius.zbihlei@1and1.ro Date: Thu Aug 5 11:31:02 2010 +0300
modules:carrierroute Better handling of fclose
---
modules/carrierroute/cr_config.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/modules/carrierroute/cr_config.c b/modules/carrierroute/cr_config.c index 1f0775a..51a81d9 100644 --- a/modules/carrierroute/cr_config.c +++ b/modules/carrierroute/cr_config.c @@ -168,7 +168,8 @@ static int backup_config(void) {
if (fclose(from)==EOF) { LM_ERR("Error closing source file.\n"); - goto errclose; + fclose(to); + goto errout; }
if (fclose(to)==EOF) {