From: Jiří Filipovič Date: Mon, 2 Apr 2007 17:29:38 +0000 (+0000) Subject: close tag file also on non-existent tag X-Git-Tag: glite-jp_R_1_4_0_1~10 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=ab512932b24434d056e3bf4f3f2c975aeac8e68b;p=jra1mw.git close tag file also on non-existent tag --- diff --git a/org.glite.jp.primary/src/new_ftp_backend.c b/org.glite.jp.primary/src/new_ftp_backend.c index ce384d8..88b26d4 100644 --- a/org.glite.jp.primary/src/new_ftp_backend.c +++ b/org.glite.jp.primary/src/new_ftp_backend.c @@ -2395,9 +2395,14 @@ int glite_jppsbe_read_tag( } if (tag_attr(ctx,h,attr,attrval)){ + glite_jp_error_t *e; err.code = EIO; err.desc = "cannot read tag"; - return glite_jp_stack_error(ctx,&err); + glite_jp_stack_error(ctx,&err); + e = ctx->error; + glite_jppsbe_close_file(ctx,h->bhandle); + ctx->error = e; + return err.code; } if (glite_jppsbe_close_file(ctx,h->bhandle))