SyncEngine: Fix a crash in csync_vio_file_stat_copy #3051
authorJocelyn Turcotte <jturcotte@woboq.com>
Tue, 7 Apr 2015 14:55:04 +0000 (16:55 +0200)
committerJocelyn Turcotte <jturcotte@woboq.com>
Wed, 8 Apr 2015 07:35:43 +0000 (09:35 +0200)
commitd475628c70c5947fefdb2afe84ffba93b4fa6a8d
tree28f0c4e231ce8067ec713beb188c77c48d88634a
parent4a890eae38f86d5f689983e84da951a1b42c17d8
SyncEngine: Fix a crash in csync_vio_file_stat_copy #3051

In some cryptic cases where the getetag property wasn't returned by
the server, we might be trying to c_strdup a null pointer in
csync_vio_file_stat_copy.

At least avoid crashing in this case by looking for
CSYNC_VIO_FILE_STAT_FIELDS_ETAG, like csync_vio_file_stat_destroy
does.
csync/src/vio/csync_vio_file_stat.c