diff --git a/gass/copy/source/globus_gass_copy_glob.c b/gass/copy/source/globus_gass_copy_glob.c index f6aa7b41d..63063fc81 100644 --- a/gass/copy/source/globus_gass_copy_glob.c +++ b/gass/copy/source/globus_gass_copy_glob.c @@ -2096,7 +2096,10 @@ globus_l_gass_copy_cksm_file( { count = GASS_COPY_CKSM_BUFSIZE; } - globus_l_gass_copy_stat_file(url,&statbuf); + result = globus_l_gass_copy_stat_file(url,&statbuf); + if( result != GLOBUS_SUCCESS){ + goto error_fd; + } is_regular = statbuf.type == GLOBUS_GASS_COPY_GLOB_ENTRY_FILE; if( is_regular ){ fd = open(parsed_url.url_path, O_RDONLY);