diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/system/dlt-system-filetransfer.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/system/dlt-system-filetransfer.c b/src/system/dlt-system-filetransfer.c index 6d519ac..7e141f5 100644 --- a/src/system/dlt-system-filetransfer.c +++ b/src/system/dlt-system-filetransfer.c @@ -263,8 +263,15 @@ int send_one(char *src, FiletransferOptions const *opts, int which) char *rn = unique_name(src);//new unique filename based on inode + if(rn == NULL) + { + // unique name couldn't be generated + // (usually because the file could not be found because it has + // already been sent by a previous change/move of the same file) + return -1; + } + MALLOC_ASSERT(fn); - MALLOC_ASSERT(rn); // Compress if needed if(opts->Compression[which] > 0) |